From: Julian Sparber Date: Wed, 13 Apr 2022 16:56:29 +0000 (+0200) Subject: label: Maintain value for `has-tooltip` for labels with links X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=659c1c41deb7c4cf2e936ad638e22491d32d1a2f;p=gtk4.git 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`. --- diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 7560e551fe..0a15b0b5c4 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -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++) {