diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 02:56:00 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 02:56:00 (EDT) |
commit | fd1f91d34176b15755a712de3d90923856964de2 (patch) | |
tree | 94f084c25e7117b96012925b6914ec38fd18dad0 /src | |
parent | bbb8adf7d081ded3d95cdb00213d3cd129b20018 (diff) | |
download | marquee-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.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 |