diff options
author | Lukáš Tyrychtr <lukastyrychtr@gmail.com> | 2022-04-21 17:55:39 +0200 |
---|---|---|
committer | Lukáš Tyrychtr <lukastyrychtr@gmail.com> | 2022-04-21 17:55:39 +0200 |
commit | 6f9013297a973159ab422a68733eea5ee41b26b3 (patch) | |
tree | 1bab1c35195c478cdb85977d6ddf4036489d80f7 | |
parent | 12287c034b12c7f63cb3d1deb9bff84ec4e2f5d9 (diff) | |
download | gtk+-6f9013297a973159ab422a68733eea5ee41b26b3.tar.gz |
Make the presentation of the stack sidebar listbox nicer for A11Y
This fixes #4577.
-rw-r--r-- | gtk/gtkstacksidebar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkstacksidebar.c b/gtk/gtkstacksidebar.c index 49d26de430..0e84f52c11 100644 --- a/gtk/gtkstacksidebar.c +++ b/gtk/gtkstacksidebar.c @@ -148,6 +148,10 @@ gtk_stack_sidebar_init (GtkStackSidebar *self) self->list = GTK_LIST_BOX (gtk_list_box_new ()); gtk_widget_add_css_class (GTK_WIDGET (self->list), "navigation-sidebar"); + gtk_accessible_update_property (GTK_ACCESSIBLE (self->list), + GTK_ACCESSIBLE_PROPERTY_LABEL, "Sidebar", + -1); + gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), GTK_WIDGET (self->list)); |