[gtk/a11y/label-name: 1/3] label: Set the accessible label property
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y/label-name: 1/3] label: Set the accessible label property
- Date: Mon, 19 Oct 2020 19:00:25 +0000 (UTC)
commit 08ae513064c9a5b056a260ce0f73780a215d8745
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 14:28:32 2020 -0400
label: Set the accessible label property
This will make label text show up in ATs again.
gtk/gtklabel.c | 4 ++++
1 file changed, 4 insertions(+)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]