mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
a11y: GtkStack is a group of stack pages
This commit is contained in:
parent
d34936c1ea
commit
995daa1e29
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user