summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-22 02:56:00 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-22 02:56:00 (EDT)
commitfd1f91d34176b15755a712de3d90923856964de2 (patch)
tree94f084c25e7117b96012925b6914ec38fd18dad0 /src
parentbbb8adf7d081ded3d95cdb00213d3cd129b20018 (diff)
downloadmarquee-fd1f91d34176b15755a712de3d90923856964de2.zip
marquee-fd1f91d34176b15755a712de3d90923856964de2.tar.gz
marquee-fd1f91d34176b15755a712de3d90923856964de2.tar.bz2
MqTab: Set tab tooltips
Also plugs a memory leak.
Diffstat (limited to 'src')
-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