diff options
Diffstat (limited to 'src/toolbars/navigation')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index 38fecd2..60ad171 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -99,7 +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(main_menu->tab_page->window->notebook)); + gtk_notebook_next_page(GTK_NOTEBOOK( + mq_tab_page_get_window(main_menu->tab_page)->notebook)); } static void @@ -108,7 +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(main_menu->tab_page->window->notebook)); + gtk_notebook_next_page(GTK_NOTEBOOK( + mq_tab_page_get_window(main_menu->tab_page)->notebook)); } static void |