diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-24 04:41:19 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-24 04:41:19 (EDT) |
commit | d1ce1afc2240cfdeda48a23dd616a398ec336a72 (patch) | |
tree | 1683d10717f292071077869d3236d0de91bbd822 /src/toolbars | |
parent | d79413597539863361033c032f8697896231a7fc (diff) | |
download | marquee-d1ce1afc2240cfdeda48a23dd616a398ec336a72.zip marquee-d1ce1afc2240cfdeda48a23dd616a398ec336a72.tar.gz marquee-d1ce1afc2240cfdeda48a23dd616a398ec336a72.tar.bz2 |
mq_notebook_insert_*(): Optionally switch to new tab
And update calls.
Diffstat (limited to 'src/toolbars')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 12 |
1 files changed, 4 insertions, 8 deletions
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 |