From 125442297f07b6627bc0a3f9fbe0ce21dd6997b8 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 16 Nov 2020 14:25:02 +0000 Subject: [PATCH] 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,