summaryrefslogtreecommitdiffstats
path: root/src/toolbars/navigation
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-18 01:00:49 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-18 01:00:49 (EDT)
commitab777ef1183a5bbd4b5eb3ee4b7d56913033d612 (patch)
treeefb37af9ebaf644568408dfea3d682b46f0475b4 /src/toolbars/navigation
parent288b1e258989bed2de3400b954d98d41198895a5 (diff)
downloadmarquee-ab777ef1183a5bbd4b5eb3ee4b7d56913033d612.zip
marquee-ab777ef1183a5bbd4b5eb3ee4b7d56913033d612.tar.gz
marquee-ab777ef1183a5bbd4b5eb3ee4b7d56913033d612.tar.bz2
MqMainMenu: Use mq_tab_page_get_window()
Diffstat (limited to 'src/toolbars/navigation')
-rw-r--r--src/toolbars/navigation/main-menu.c6
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