summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-24 22:25:28 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-24 22:25:28 (EDT)
commitab0556c7db38369a27179b0c3d0effb45d289e5c (patch)
tree7b2aac9e137b919fcbbb3db8078d80c7e1f52a94 /src
parent6e5f93e5b15e6990c1e93b8ae4f3ca8d5a0d0c11 (diff)
downloadmarquee-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.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)
{