projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1771f75
)
GtkInscription: Set the a11y label when updating the text property
author
Lukáš Tyrychtr
<lukastyrychtr@gmail.com>
Thu, 1 Sep 2022 14:19:59 +0000
(16:19 +0200)
committer
Lukáš Tyrychtr
<lukastyrychtr@gmail.com>
Thu, 1 Sep 2022 14:19:59 +0000
(16:19 +0200)
gtk/gtkinscription.c
patch
|
blob
|
history
diff --git
a/gtk/gtkinscription.c
b/gtk/gtkinscription.c
index 7ce22702eb84f0892fb43d6ed1d82584c3f74370..42dff1eadad0ff71213f289419cbe4b6e3e25b0d 100644
(file)
--- a/
gtk/gtkinscription.c
+++ b/
gtk/gtkinscription.c
@@
-795,6
+795,11
@@
gtk_inscription_set_text (GtkInscription *self,
g_free (self->text);
self->text = g_strdup (text);
+ gtk_accessible_update_property (GTK_ACCESSIBLE (self),
+ GTK_ACCESSIBLE_PROPERTY_LABEL, self->text,
+ -1);
+
+
pango_layout_set_text (self->layout,
self->text ? self->text : "",
-1);