summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 16:06:19 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 16:06:19 (EDT)
commit5a8791bf727cb3d631ad064f3378c92e6d27d248 (patch)
treea2d757a85f3103a27007b72ea1c378335408bd7b
parent8c3d69509ecdae0b62f895cf99fb04259a407625 (diff)
downloadmarquee-5a8791bf727cb3d631ad064f3378c92e6d27d248.zip
marquee-5a8791bf727cb3d631ad064f3378c92e6d27d248.tar.gz
marquee-5a8791bf727cb3d631ad064f3378c92e6d27d248.tar.bz2
mq_notebook_set_current_page(): Fix mq_tree_seek() offset argument
-rw-r--r--src/notebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/notebook.c b/src/notebook.c
index 01f7923..d3583b8 100644
--- a/src/notebook.c
+++ b/src/notebook.c
@@ -395,7 +395,7 @@ mq_notebook_set_current_page(MqNotebook *notebook, gint page_num)
{
MqTabTree *node;
- node = MQ_TAB_TREE(mq_tree_seek(MQ_TREE(notebook->tree), page_num));
+ node = MQ_TAB_TREE(mq_tree_seek(MQ_TREE(notebook->tree), page_num + 1));
notebook->current_page = node->page;
gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), page_num);
}