diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-22 17:53:46 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-22 17:53:46 (EDT) |
commit | 7f7d3a1a4b847fa197fcfe52dd906a6317d69c7f (patch) | |
tree | 1009a8dce82f7ca54bb5afa413ff8d2284de9034 /src | |
parent | b9ee677e0a64b95dcdffcc3a874841cb5f185d91 (diff) | |
download | marquee-7f7d3a1a4b847fa197fcfe52dd906a6317d69c7f.zip marquee-7f7d3a1a4b847fa197fcfe52dd906a6317d69c7f.tar.gz marquee-7f7d3a1a4b847fa197fcfe52dd906a6317d69c7f.tar.bz2 |
MqMainMenu: Make tab switching a little less hackish
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index dafac9b..055f489 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -99,8 +99,8 @@ preferences_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) gtk_widget_hide(main_menu->popover); mq_tab_page_new("about:preferences", main_menu->tab_page); /* TODO: Hack: */ - gtk_notebook_next_page(GTK_NOTEBOOK( - mq_tab_page_get_window(main_menu->tab_page)->notebook)); + gtk_notebook_next_page(GTK_NOTEBOOK(gtk_widget_get_parent( + GTK_WIDGET(main_menu->tab_page)))); } static void @@ -109,8 +109,8 @@ about_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) gtk_widget_hide(main_menu->popover); mq_tab_page_new("about:", main_menu->tab_page); /* TODO: Hack: */ - gtk_notebook_next_page(GTK_NOTEBOOK( - mq_tab_page_get_window(main_menu->tab_page)->notebook)); + gtk_notebook_next_page(GTK_NOTEBOOK(gtk_widget_get_parent( + GTK_WIDGET(main_menu->tab_page)))); } static void |