summaryrefslogtreecommitdiffstats
path: root/src/tab-label.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 04:53:49 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 04:53:49 (EDT)
commit581cb4ef33474af3d12c0ad833e335ee696f133f (patch)
tree1b59b23b3e51466032b3ef2780510bc5b45d37e9 /src/tab-label.c
parente2119d7da1e2ba12b10118073366a69d3437ece9 (diff)
downloadmarquee-581cb4ef33474af3d12c0ad833e335ee696f133f.zip
marquee-581cb4ef33474af3d12c0ad833e335ee696f133f.tar.gz
marquee-581cb4ef33474af3d12c0ad833e335ee696f133f.tar.bz2
MqTabLabel: Use mq_notebook_insert_child()
Diffstat (limited to 'src/tab-label.c')
-rw-r--r--src/tab-label.c6
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);
}