diff options
-rw-r--r-- | src/tab-label.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tab-label.c b/src/tab-label.c index 318c551..0602a19 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -25,6 +25,7 @@ #include <gtk/gtk.h> #include <webkit2/webkit2.h> +#include "notebook.h" #include "tab-page.h" #include "web-view.h" @@ -65,7 +66,10 @@ reload_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label) static void new_tab_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label) { - mq_tab_page_new(NULL, tab_label->tab_page); + mq_notebook_insert_child( + MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(tab_label))), + NULL, + tab_label->tab_page); gtk_widget_hide(tab_label->popover); } |