summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/toolbars/navigation/main-menu.c13
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))));