summaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-28 16:06:49 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-28 16:06:49 (EDT)
commitc6e38616022a6e2bf80e4b5026bf66eee8238211 (patch)
tree245b64d4d0be12d3303f8effec75250c4276b052 /src/window.c
parentc01c1090ab0f6339b9ee92168720e461552a0975 (diff)
downloadmarquee-c6e38616022a6e2bf80e4b5026bf66eee8238211.zip
marquee-c6e38616022a6e2bf80e4b5026bf66eee8238211.tar.gz
marquee-c6e38616022a6e2bf80e4b5026bf66eee8238211.tar.bz2
mq_window_set_current_tab(): New function
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 6a44ae1..15230ba 100644
--- a/src/window.c
+++ b/src/window.c
@@ -121,6 +121,13 @@ mq_window_insert_tab(MqWindow *window, GtkWidget *tab_page,
gtk_widget_show_all(tab_label);
}
+void
+mq_window_set_current_tab(MqWindow *window, guint tab)
+{
+ window->current_tab = tab;
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(window->notebook), tab - 1);
+}
+
guint
mq_window_get_current_tab(MqWindow *window)
{