[gtk/matthiasc/for-master] a11y: Document roles used in menu
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] a11y: Document roles used in menu
- Date: Thu, 22 Oct 2020 01:40:44 +0000 (UTC)
commit 5f8c6d228725f936e4f45c8ae2155a7477a47845
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 21 21:40:19 2020 -0400
a11y: Document roles used in menu
docs/reference/gtk/section-accessibility.md | 5 +++++
gtk/gtkenums.h | 10 +++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/gtk/section-accessibility.md b/docs/reference/gtk/section-accessibility.md
index bf1198262b..5ba59a5a46 100644
--- a/docs/reference/gtk/section-accessibility.md
+++ b/docs/reference/gtk/section-accessibility.md
@@ -56,6 +56,11 @@ Each role name is part of the #GtkAccessibleRole enumeration.
| `LABEL` | A visible name or caption for a user interface component | #GtkLabel |
| `LIST` | A list of items | #GtkListBox |
| `LIST_ITEM` | An item in a list | #GtkListBoxRow |
+| `MENU` | A menu | #GtkPopoverMenu |
+| `MENU_BAR` | A menubar | #GtkPopoverMenuBar |
+| `MENU_ITEM` | A menu item | Items in #GtkPopoverMenu |
+| `MENU_ITEM_CHECKBOX` | Check menu item | Items in #GtkPopoverMenu |
+| `MENU_ITEM_RADIO` | Radio menu item | Items in #GtkPopoverMenu |
| `METER` | Represents a value within a known range | #GtkLevelBar |
| `NONE` | Not represented in the accessibility tree | the slider of a #GtkScale |
| `PROGRESS_BAR` | An element that display progress | #GtkProgressBar |
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 28ed4fb2f1..6245634213 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -1193,11 +1193,11 @@ typedef enum {
* @GTK_ACCESSIBLE_ROLE_MARQUEE: Unused
* @GTK_ACCESSIBLE_ROLE_MATH: Unused
* @GTK_ACCESSIBLE_ROLE_METER: An element that represents a value within a known range.
- * @GTK_ACCESSIBLE_ROLE_MENU: Unused
- * @GTK_ACCESSIBLE_ROLE_MENU_BAR: Unused
- * @GTK_ACCESSIBLE_ROLE_MENU_ITEM: Unused
- * @GTK_ACCESSIBLE_ROLE_MENU_ITEM_CHECKBOX: Unused
- * @GTK_ACCESSIBLE_ROLE_MENU_ITEM_RADIO: Unused
+ * @GTK_ACCESSIBLE_ROLE_MENU: A menu.
+ * @GTK_ACCESSIBLE_ROLE_MENU_BAR: A menubar.
+ * @GTK_ACCESSIBLE_ROLE_MENU_ITEM: An item in a menu.
+ * @GTK_ACCESSIBLE_ROLE_MENU_ITEM_CHECKBOX: A check item in a menu.
+ * @GTK_ACCESSIBLE_ROLE_MENU_ITEM_RADIO: A radio item in a menu.
* @GTK_ACCESSIBLE_ROLE_NAVIGATION: Unused
* @GTK_ACCESSIBLE_ROLE_NONE: An element that is not represented to accessibility technologies.
* @GTK_ACCESSIBLE_ROLE_NOTE: Unused
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]