Thanks to Mohammed Sadiq for noticing this. I guess I got
Widget.get_tooltip_text() confused with Label.get_label().
https://bugzilla.gnome.org/show_bug.cgi?id=787410
static void
ensure_has_tooltip (GtkEntry *entry)
{
- gboolean has_tooltip = gtk_widget_get_tooltip_text (GTK_WIDGET (entry)) != NULL;
+ gchar *text = gtk_widget_get_tooltip_text (GTK_WIDGET (entry));
+ gboolean has_tooltip = text != NULL;
if (!has_tooltip)
{
}
}
}
+ else
+ {
+ g_free (text);
+ }
gtk_widget_set_has_tooltip (GTK_WIDGET (entry), has_tooltip);
}