summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-10-03 16:19:06 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-10-03 16:19:06 (EDT)
commit238d867b08eee241292924fe60d3695ea712faac (patch)
tree64c0062b17ecf55507f0cae5b60cd4c2f630314a /src
parent4d93a73047c687c9f930f5432611d129dea3c8ea (diff)
downloadmarquee-238d867b08eee241292924fe60d3695ea712faac.zip
marquee-238d867b08eee241292924fe60d3695ea712faac.tar.gz
marquee-238d867b08eee241292924fe60d3695ea712faac.tar.bz2
MqTabLabel: Move static custom title function
Diffstat (limited to 'src')
-rw-r--r--src/tab-label.c18
1 files changed, 9 insertions, 9 deletions
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)