diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-24 22:25:28 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-24 22:25:28 (EDT) |
commit | ab0556c7db38369a27179b0c3d0effb45d289e5c (patch) | |
tree | 7b2aac9e137b919fcbbb3db8078d80c7e1f52a94 /src | |
parent | 6e5f93e5b15e6990c1e93b8ae4f3ca8d5a0d0c11 (diff) | |
download | marquee-ab0556c7db38369a27179b0c3d0effb45d289e5c.zip marquee-ab0556c7db38369a27179b0c3d0effb45d289e5c.tar.gz marquee-ab0556c7db38369a27179b0c3d0effb45d289e5c.tar.bz2 |
MqTab: Move definitions of update_tab_*()
Diffstat (limited to 'src')
-rw-r--r-- | src/tab.c | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -28,6 +28,23 @@ #include "tab-body.h" static void +update_tab_image(MqTab *tab) +{ + gtk_image_set_from_surface(GTK_IMAGE(tab->tab_image), tab->favicon); +} + +static void +update_tab_label(MqTab *tab) +{ + gchar *label; + + label = g_strdup_printf("%d. %s", tab->position + 1, tab->title); + gtk_label_set_text(GTK_LABEL(tab->tab_label), label); + gtk_widget_set_tooltip_text(tab->tab, label); + g_free(label); +} + +static void update_positions(MqTab *node, gint step) { if (node) { @@ -255,23 +272,6 @@ mq_tab_populate_tab(MqTab *tab) } static void -update_tab_image(MqTab *tab) -{ - gtk_image_set_from_surface(GTK_IMAGE(tab->tab_image), tab->favicon); -} - -static void -update_tab_label(MqTab *tab) -{ - gchar *label; - - label = g_strdup_printf("%d. %s", tab->position + 1, tab->title); - gtk_label_set_text(GTK_LABEL(tab->tab_label), label); - gtk_widget_set_tooltip_text(tab->tab, label); - g_free(label); -} - -static void favicon_cb(WebKitWebView __attribute__((unused)) *web_view, GParamSpec __attribute__((unused)) *paramspec, MqTab *tab) { |