diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 04:56:40 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 04:56:40 (EDT) |
commit | 35d1f8e82cf469db07e28484f196aa676735db99 (patch) | |
tree | 3e064d188ce60464fec287d9525fc766f68b2a46 /src/toolbars/navigation | |
parent | 581cb4ef33474af3d12c0ad833e335ee696f133f (diff) | |
download | marquee-35d1f8e82cf469db07e28484f196aa676735db99.zip marquee-35d1f8e82cf469db07e28484f196aa676735db99.tar.gz marquee-35d1f8e82cf469db07e28484f196aa676735db99.tar.bz2 |
MqMainMenu: Use mq_notebook_insert_child()
Diffstat (limited to 'src/toolbars/navigation')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index 055f489..9e2057a 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -25,6 +25,7 @@ #include <gtk/gtk.h> #include <webkit2/webkit2.h> +#include "../../notebook.h" #include "../../tab-page.h" #include "../../web-view.h" #include "../find-toolbar.h" @@ -97,7 +98,11 @@ static void 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); + mq_notebook_insert_child( + MQ_NOTEBOOK(gtk_widget_get_parent( + GTK_WIDGET(main_menu->tab_page))), + "about:preferences", + main_menu->tab_page); /* TODO: Hack: */ gtk_notebook_next_page(GTK_NOTEBOOK(gtk_widget_get_parent( GTK_WIDGET(main_menu->tab_page)))); @@ -107,7 +112,11 @@ static void 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); + mq_notebook_insert_child( + MQ_NOTEBOOK(gtk_widget_get_parent( + GTK_WIDGET(main_menu->tab_page))), + "about:", + main_menu->tab_page); /* TODO: Hack: */ gtk_notebook_next_page(GTK_NOTEBOOK(gtk_widget_get_parent( GTK_WIDGET(main_menu->tab_page)))); |