summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-20 22:51:11 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-20 22:51:11 -0400
commit2023914186f4c2b737e78ed3e1989e0765930457 (patch)
treea913503985859e968e32dbfc72eed8a4246b98e9
parentef9ec43469c114f90174772a796813367b081a3a (diff)
downloadgtk+-2023914186f4c2b737e78ed3e1989e0765930457.tar.gz
docs: Document accessible roles of some classes
GtkListBox and GtkFlowBox were missing this.
-rw-r--r--gtk/gtkflowbox.c5
-rw-r--r--gtk/gtklistbox.c5
2 files changed, 10 insertions, 0 deletions
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;