diff options
-rw-r--r-- | src/tab-chrome.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index c03f393..c61d30e 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -90,6 +90,13 @@ mq_tab_chrome_get_container(MqTabChrome *chrome) return chrome->container; } +static void +update_tab_label(MqTabChrome *chrome) +{ + gtk_label_set_text(GTK_LABEL(chrome->tab_label), + webkit_web_view_get_title(chrome->web_view)); +} + void mq_tab_chrome_update_tab_position(MqTabChrome *chrome, guint position) { @@ -131,11 +138,10 @@ uri_cb(WebKitWebView *web_view, GParamSpec __attribute__((unused)) *paramspec, } static void -title_cb(WebKitWebView *web_view, GParamSpec __attribute__((unused)) *paramspec, - MqTabChrome *chrome) +title_cb(WebKitWebView __attribute__((unused)) *web_view, + GParamSpec __attribute__((unused)) *paramspec, MqTabChrome *chrome) { - gtk_label_set_text(GTK_LABEL(chrome->tab_label), - webkit_web_view_get_title(web_view)); + update_tab_label(chrome); } static void |