[gtk/ebassi/for-master: 7/15] a11y: Use the stack page title as its accessible label




commit 66117d399e4053882bc4c56c4cb3ad047394c168
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Nov 12 14:50:49 2020 +0000

    a11y: Use the stack page title as its accessible label

 gtk/gtkstack.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c
index 5d90c63ba0..b512d1d638 100644
--- a/gtk/gtkstack.c
+++ b/gtk/gtkstack.c
@@ -2773,6 +2773,10 @@ gtk_stack_page_set_title (GtkStackPage *self,
   g_free (self->title);
   self->title = g_strdup (setting);
   g_object_notify_by_pspec (G_OBJECT (self), stack_page_props[CHILD_PROP_TITLE]);
+
+  gtk_accessible_update_property (GTK_ACCESSIBLE (self),
+                                  GTK_ACCESSIBLE_PROPERTY_LABEL, self->title,
+                                  -1);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]