From d1ce1afc2240cfdeda48a23dd616a398ec336a72 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 24 Oct 2017 04:41:19 -0400 Subject: mq_notebook_insert_*(): Optionally switch to new tab And update calls. --- (limited to 'src/toolbars/navigation') diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index 9e2057a..2515033 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -102,10 +102,8 @@ preferences_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) MQ_NOTEBOOK(gtk_widget_get_parent( GTK_WIDGET(main_menu->tab_page))), "about:preferences", - main_menu->tab_page); - /* TODO: Hack: */ - gtk_notebook_next_page(GTK_NOTEBOOK(gtk_widget_get_parent( - GTK_WIDGET(main_menu->tab_page)))); + main_menu->tab_page, + TRUE); } static void @@ -116,10 +114,8 @@ about_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) MQ_NOTEBOOK(gtk_widget_get_parent( GTK_WIDGET(main_menu->tab_page))), "about:", - main_menu->tab_page); - /* TODO: Hack: */ - gtk_notebook_next_page(GTK_NOTEBOOK(gtk_widget_get_parent( - GTK_WIDGET(main_menu->tab_page)))); + main_menu->tab_page, + TRUE); } static void -- cgit v0.9.1