projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f2be7e
)
label: Maintain value for `has-tooltip` for labels with links
author
Julian Sparber
<julian@sparber.net>
Wed, 13 Apr 2022 16:56:29 +0000
(18:56 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 21 Apr 2022 23:24:59 +0000
(19:24 -0400)
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`.
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index 7560e551fe4462ba29662a9626b3f83190654489..0a15b0b5c4808643c88def5f3609268b49ef0fd6 100644
(file)
--- 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++)
{