[libadwaita/wip/exalm/a11y-fixes: 9/11] preferences-page: Set accessible role
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/a11y-fixes: 9/11] preferences-page: Set accessible role
- Date: Mon, 27 Dec 2021 13:16:35 +0000 (UTC)
commit 91588b0f436b80be71ae1596b468c6834fd91723
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Dec 27 18:06:41 2021 +0500
preferences-page: Set accessible role
src/adw-preferences-page.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/adw-preferences-page.c b/src/adw-preferences-page.c
index e3170015..52961360 100644
--- a/src/adw-preferences-page.c
+++ b/src/adw-preferences-page.c
@@ -29,6 +29,10 @@
*
* `AdwPreferencesPage` has a single CSS node with name `preferencespage`.
*
+ * ## Accessibility
+ *
+ * `AdwPreferencesPage` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
+ *
* Since: 1.0
*/
@@ -214,11 +218,12 @@ adw_preferences_page_class_init (AdwPreferencesPageClass *klass)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/Adwaita/ui/adw-preferences-page.ui");
- gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
gtk_widget_class_bind_template_child_private (widget_class, AdwPreferencesPage, box);
gtk_widget_class_bind_template_child_private (widget_class, AdwPreferencesPage, scrolled_window);
gtk_widget_class_set_css_name (widget_class, "preferencespage");
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GROUP);
+ gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]