a11y: GtkStack is a group of stack pages

This commit is contained in:
Emmanuele Bassi 2020-11-12 14:50:35 +00:00
parent d34936c1ea
commit 995daa1e29
2 changed files with 2 additions and 1 deletions

View File

@ -822,6 +822,7 @@ gtk_stack_class_init (GtkStackClass *klass)
g_object_class_install_properties (object_class, LAST_PROP, stack_props);
gtk_widget_class_set_css_name (widget_class, I_("stack"));
gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GROUP);
}
/**

View File

@ -18,7 +18,7 @@ stack_role (void)
gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (switcher), GTK_STACK (stack));
gtk_test_accessible_assert_role (GTK_ACCESSIBLE (stack), GTK_ACCESSIBLE_ROLE_WIDGET);
gtk_test_accessible_assert_role (GTK_ACCESSIBLE (stack), GTK_ACCESSIBLE_ROLE_GROUP);
gtk_test_accessible_assert_role (GTK_ACCESSIBLE (switcher), GTK_ACCESSIBLE_ROLE_TAB_LIST);
child = gtk_widget_get_first_child (switcher);