summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab-page.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tab-page.c b/src/tab-page.c
index 1a7b37a..c6e5edd 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -42,6 +42,7 @@ struct _MqTabPage {
gchar *uri;
guint position;
MqApplication *application;
+ guint64 id;
GtkWidget *container;
GtkWidget *label;
const gchar *title;
@@ -81,6 +82,9 @@ init_non_root(MqTabPage *tab_page)
tab_page->application = mq_window_get_application(tab_page->window);
+ tab_page->id = mq_application_register_tab(tab_page->application,
+ tab_page);
+
tab_page->web_view = WEBKIT_WEB_VIEW(mq_web_view_new(tab_page,
tab_page->uri));
g_signal_connect(tab_page->web_view, "notify::title",
@@ -128,6 +132,8 @@ finalize(GObject *object)
g_free(tab_page->uri);
+ mq_application_unregister_tab(tab_page->application, tab_page->id);
+
G_OBJECT_CLASS(mq_tab_page_parent_class)->finalize(object);
}