summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 06:11:01 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 06:11:01 (EDT)
commiteeab38b45a9cfbed8b27a3aefae617e8c111e81e (patch)
tree9706d3a4438d321fc7d0fc3600992a52c787614d
parent8a3bccf0dc619caaa0d912409cd24eddff7cb3b5 (diff)
downloadmarquee-eeab38b45a9cfbed8b27a3aefae617e8c111e81e.zip
marquee-eeab38b45a9cfbed8b27a3aefae617e8c111e81e.tar.gz
marquee-eeab38b45a9cfbed8b27a3aefae617e8c111e81e.tar.bz2
MqTabPage: Use mq_notebook_update_tab_title()
-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);
}