From fd1f91d34176b15755a712de3d90923856964de2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 22 Sep 2017 02:56:00 -0400 Subject: MqTab: Set tab tooltips Also plugs a memory leak. --- (limited to 'src') 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 -- cgit v0.9.1