From 341244203fd43a424f05679dbb6e8ef013d03511 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 20 Oct 2020 22:53:30 -0400 Subject: [PATCH] docs: Document more accessible roles GtkListView and GtkGridView were missing this as well. --- gtk/gtkgridview.c | 5 +++++ gtk/gtklistview.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gtk/gtkgridview.c b/gtk/gtkgridview.c index 8c24afc9e1..1f3b4c37ef 100644 --- a/gtk/gtkgridview.c +++ b/gtk/gtkgridview.c @@ -77,6 +77,11 @@ * GtkGridView uses a single CSS node with name gridview. Each child * uses a single CSS node with name child. For rubberband selection, * a subnode with name rubberband is used. + * + * # Accessibility + * + * GtkGridView uses the #GTK_ACCESSIBLE_ROLE_GRID role, and the items + * use the #GTK_ACCESSIBLE_ROLE_GRID_CELL role. */ typedef struct _Cell Cell; diff --git a/gtk/gtklistview.c b/gtk/gtklistview.c index ad8f8ea16c..6d1eb3413b 100644 --- a/gtk/gtklistview.c +++ b/gtk/gtklistview.c @@ -135,6 +135,11 @@ * The main listview node may also carry style classes to select * the style of [list presentation](ListContainers.html#list-styles): * .rich-list, .navigation-sidebar or .data-table. + * + * # Accessibility + * + * GtkListView uses the #GTK_ACCESSIBLE_ROLE_LIST role, and the list + * items use the #GTK_ACCESSIBLE_ROLE_LIST_ITEM role. */ typedef struct _ListRow ListRow;