forked from AuroraMiddleware/gtk
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