From ab777ef1183a5bbd4b5eb3ee4b7d56913033d612 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 18 Oct 2017 01:00:49 -0400 Subject: MqMainMenu: Use mq_tab_page_get_window() --- (limited to 'src') 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 -- cgit v0.9.1