From 29cf15a4445f01084a58763fc42394ae94ba5778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Thu, 15 Jun 2023 14:29:31 +0200 Subject: [PATCH] GtkStackSidebar: Explicitly mark the sidebar items as labeled by the labels That improves the reading of the GtkStackSidebar widget considerably. Previously, Orca would not read the items at all, now it does. --- gtk/gtkstacksidebar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c index 22e0989bc2..146d6b6998 100644 --- a/gtk/gtkstacksidebar.c +++ b/gtk/gtkstacksidebar.c @@ -220,6 +220,12 @@ add_child (guint position, row = gtk_list_box_row_new (); gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), item); + gtk_accessible_update_relation (GTK_ACCESSIBLE (row), + GTK_ACCESSIBLE_RELATION_LABELLED_BY, + item, + NULL, + -1); + page = g_list_model_get_item (G_LIST_MODEL (self->pages), position); update_row (self, page, row);