mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
label: Maintain value for has-tooltip
for labels with links
The `has-tooltip` property gets set to `false` for label with links if no link is selected. This makes sure to only change the property to `true` but never to `false`.
This commit is contained in:
parent
a2599c2bb9
commit
764a8cea59
@ -3615,7 +3615,11 @@ static void
|
||||
gtk_label_ensure_has_tooltip (GtkLabel *self)
|
||||
{
|
||||
guint i;
|
||||
gboolean has_tooltip = FALSE;
|
||||
gboolean has_tooltip = gtk_widget_get_has_tooltip(GTK_WIDGET(self));
|
||||
|
||||
if (has_tooltip) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < self->select_info->n_links; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user