diff options
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) { |