From 9e9700de980e695a54493a879610eff8b4cd57aa Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 28 Sep 2017 15:10:09 -0400 Subject: MqWindow: Count tabs from 1 The root tab is 0. MqTab counts non-root tabs from 1. --- diff --git a/src/window.c b/src/window.c index 32105a3..b64e1b1 100644 --- a/src/window.c +++ b/src/window.c @@ -42,10 +42,10 @@ switch_page_cb(GtkNotebook __attribute__((unused)) *notebook, GtkWidget __attribute__((unused)) *page, guint page_num, MqWindow *window) { - window->current_tab = page_num; + window->current_tab = ++page_num; set_title(window, mq_tab_get_title(mq_tab_seek(window->root_tab, - page_num + 1))); + page_num))); } static void -- cgit v0.9.1