summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-19 14:28:32 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-19 14:29:19 -0400
commit08ae513064c9a5b056a260ce0f73780a215d8745 (patch)
tree0158e022f816120ed09db3b657634e801d33cdfa /gtk
parentf52c86ae21507fade4080e68708451d0efd546ab (diff)
downloadgtk+-08ae513064c9a5b056a260ce0f73780a215d8745.tar.gz
label: Set the accessible label property
This will make label text show up in ATs again.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtklabel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index d23f0253a9..b6c1e43e49 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -1696,6 +1696,10 @@ gtk_label_set_text_internal (GtkLabel *self,
g_free (self->text);
self->text = str;
+ gtk_accessible_update_property (GTK_ACCESSIBLE (self),
+ GTK_ACCESSIBLE_PROPERTY_LABEL, str,
+ -1);
+
gtk_label_select_region_index (self, 0, 0);
}