mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
GtkInscription: Set the a11y label when updating the text property
This commit is contained in:
parent
1771f75c6c
commit
27f32b7f9b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user