summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tab.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/tab.c b/src/tab.c
index ba632ee..c4acd9e 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -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)
{