Merge branch 'fix_4577' into 'main'

Make the presentation of the stack sidebar listbox nicer for A11Y

Closes #4577

See merge request GNOME/gtk!4661
This commit is contained in:
Matthias Clasen 2022-09-26 14:41:29 +00:00
commit 1318fdc52c

View File

@ -33,6 +33,8 @@
#include "gtkprivate.h"
#include "gtkwidgetprivate.h"
#include <glib/gi18n-lib.h>
/**
* GtkStackSidebar:
*
@ -147,6 +149,11 @@ 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,
C_("accessibility", "Sidebar"),
-1);
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (sw), GTK_WIDGET (self->list));