From 581cb4ef33474af3d12c0ad833e335ee696f133f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 04:53:49 -0400 Subject: MqTabLabel: Use mq_notebook_insert_child() --- 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 #include +#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); } -- cgit v0.9.1