[gtk/matthiasc/for-master] docs: Document more accessible roles



commit 341244203fd43a424f05679dbb6e8ef013d03511
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 20 22:53:30 2020 -0400

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]