summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab-page.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tab-page.c b/src/tab-page.c
index 9012147..364879e 100644
--- a/src/tab-page.c
+++ b/src/tab-page.c
@@ -29,6 +29,7 @@
#include <webkit2/webkit2.h>
#include "application.h"
+#include "notebook.h"
#include "tab-label.h"
#include "toolbars/find-toolbar.h"
#include "toolbars/navigation-toolbar.h"
@@ -66,7 +67,9 @@ title_cb(WebKitWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec,
MqTabPage *tab_page)
{
tab_page->title = webkit_web_view_get_title(web_view);
- mq_window_update_tab_title(tab_page->window, tab_page->position,
+ mq_notebook_update_tab_title(
+ MQ_NOTEBOOK(gtk_widget_get_parent(GTK_WIDGET(tab_page))),
+ tab_page,
tab_page->title);
}