summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-28 15:10:09 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-28 15:10:09 (EDT)
commit9e9700de980e695a54493a879610eff8b4cd57aa (patch)
tree62af0a62fdc8f092b88c5383e5c52a4cd0cd5e10
parent66372daa502d507c23ff54b51a7472759ff5172a (diff)
downloadmarquee-9e9700de980e695a54493a879610eff8b4cd57aa.zip
marquee-9e9700de980e695a54493a879610eff8b4cd57aa.tar.gz
marquee-9e9700de980e695a54493a879610eff8b4cd57aa.tar.bz2
MqWindow: Count tabs from 1
The root tab is 0. MqTab counts non-root tabs from 1.
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
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