diff options
-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 |