[gtk/matthiasc/for-master] docs: Document accessible roles of some classes



commit 2023914186f4c2b737e78ed3e1989e0765930457
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 20 22:51:11 2020 -0400

    docs: Document accessible roles of some classes
    
    GtkListBox and GtkFlowBox were missing this.

 gtk/gtkflowbox.c | 5 +++++
 gtk/gtklistbox.c | 5 +++++
 2 files changed, 10 insertions(+)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 79106c74c6..0ec12db7e4 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -69,6 +69,11 @@
  * GtkFlowBox uses a single CSS node with name flowbox. GtkFlowBoxChild
  * uses a single CSS node with name flowboxchild.
  * For rubberband selection, a subnode with name rubberband is used.
+ *
+ * # Accessibility
+ *
+ * GtkFlowBox uses the #GTK_ACCESSIBLE_ROLE_GRID role, and GtkFlowBoxChild
+ * uses the #GTK_ACCESSIBLE_ROLE_GRID_CELL role.
  */
 
 #include <config.h>
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index b6612f34c7..f08e3bf559 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -85,6 +85,11 @@
  * The main list 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
+ *
+ * GtkListBox uses the #GTK_ACCESSIBLE_ROLE_LIST role and GtkListBoxRow uses
+ * the #GTK_ACCESSIBLE_ROLE_LIST_ITEM role.
  */
 
 typedef struct _GtkListBoxClass   GtkListBoxClass;


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