[gtk/ebassi/for-master: 3/6] a11y: Use the tab widget to label the notebook stack page




commit 125442297f07b6627bc0a3f9fbe0ce21dd6997b8
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Nov 16 14:25:02 2020 +0000

    a11y: Use the tab widget to label the notebook stack page

 gtk/gtknotebook.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index cfac827008..bad99cdddc 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -3989,6 +3989,9 @@ gtk_notebook_insert_notebook_page (GtkNotebook *notebook,
   gtk_accessible_update_relation (GTK_ACCESSIBLE (page->tab_widget),
                                   GTK_ACCESSIBLE_RELATION_CONTROLS, stack_page, NULL,
                                   -1);
+  gtk_accessible_update_relation (GTK_ACCESSIBLE (stack_page),
+                                  GTK_ACCESSIBLE_RELATION_LABELLED_BY, page->tab_widget, NULL,
+                                  -1);
 
   gtk_accessible_update_state (GTK_ACCESSIBLE (page->tab_widget),
                                GTK_ACCESSIBLE_STATE_SELECTED, FALSE,


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