From 238d867b08eee241292924fe60d3695ea712faac Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Oct 2018 16:19:06 -0400 Subject: MqTabLabel: Move static custom title function --- diff --git a/src/tab-label.c b/src/tab-label.c index ec3429c..4b28923 100644 --- a/src/tab-label.c +++ b/src/tab-label.c @@ -204,6 +204,15 @@ set_title(MqTabLabel *tab_label, const gchar *title) } static void +set_custom_title(MqTabLabel *tab_label, const gchar *title) +{ + /* TODO: Handle empty string. Set custom title instead of overriding + * (temporarily) regular title. */ + mq_tab_page_set_title(tab_label->tab_page, title); + set_title(tab_label, title); +} + +static void favicon_cb(WebKitWebView G_GNUC_UNUSED *web_view, GParamSpec G_GNUC_UNUSED *param_spec, MqTabLabel *tab_label) { @@ -245,15 +254,6 @@ set_web_view(MqTabLabel *tab_label, MqWebView *web_view) G_CALLBACK(title_cb), tab_label); } -static void -set_custom_title(MqTabLabel *tab_label, const gchar *title) -{ - /* TODO: Handle empty string. Set custom title instead of overriding - * (temporarily) regular title. */ - mq_tab_page_set_title(tab_label->tab_page, title); - set_title(tab_label, title); -} - static gboolean name_entry_key_press_event_cb(GtkEntry G_GNUC_UNUSED *entry, GdkEventKey *event, MqTabLabel *tab_label) -- cgit v0.9.1