summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tab.c b/src/tab.c
index b24315e..be3fa70 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -174,8 +174,12 @@ update_tab_image(MqTab *tab)
static void
update_tab_label(MqTab *tab)
{
- gtk_label_set_text(GTK_LABEL(tab->tab_label),
- g_strdup_printf("%d. %s", tab->tab_position + 1, tab->title));
+ gchar *label;
+
+ label = g_strdup_printf("%d. %s", tab->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