GtkInscription: Set the a11y label when updating the text property
authorLukáš Tyrychtr <lukastyrychtr@gmail.com>
Thu, 1 Sep 2022 14:19:59 +0000 (16:19 +0200)
committerLukáš Tyrychtr <lukastyrychtr@gmail.com>
Thu, 1 Sep 2022 14:19:59 +0000 (16:19 +0200)
gtk/gtkinscription.c

index 7ce22702eb84f0892fb43d6ed1d82584c3f74370..42dff1eadad0ff71213f289419cbe4b6e3e25b0d 100644 (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);