summaryrefslogtreecommitdiff
path: root/gtk/gtkswitch.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-27 10:46:52 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-27 10:48:08 -0400
commitd90f79de0e3e778f3972467f4807a2ee306912be (patch)
tree6b1601bd9fcbaad8adfcca538f658edb95356d46 /gtk/gtkswitch.c
parent790db8db53c7d303cc1825746c3f34a67922bbc1 (diff)
downloadgtk+-d90f79de0e3e778f3972467f4807a2ee306912be.tar.gz
a11y: Document roles of widgets
Add a section to the long description for each widget that is using a non-default accessible role.
Diffstat (limited to 'gtk/gtkswitch.c')
-rw-r--r--gtk/gtkswitch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 9e4aff1bcb..f4cc9f3615 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -47,6 +47,10 @@
*
* GtkSwitch has four css nodes, the main node with the name switch and subnodes
* for the slider and the on and off labels. Neither of them is using any style classes.
+ *
+ * # Accessibility
+ *
+ * GtkSwitch uses the #GTK_ACCESSIBLE_ROLE_SWITCH role.
*/
#include "config.h"