GtkInscription: Set the a11y label when updating the text property

This commit is contained in:
Lukáš Tyrychtr 2022-09-01 16:19:59 +02:00
parent 1771f75c6c
commit 27f32b7f9b

View File

@ -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);