diff options
-rw-r--r-- | src/tab.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |