mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
flowbox: Set accessible roles
Use the GRID and GRID_CELL roles for GtkFlowBox and GtkFlowBoxChild.
This commit is contained in:
parent
147868a30c
commit
14640cec85
@ -49,6 +49,8 @@ Each role name is part of the #GtkAccessibleRole enumeration.
|
||||
| `CHECKBOX` | A control that has three possible value: `true`, `false`, or `undefined` | #GtkCheckButton |
|
||||
| `COMBOBOX` | A control that can be expanded to show a list of possible values to select | #GtkComboBox |
|
||||
| `DIALOG` | A dialog that prompts the user to enter information or require a response | #GtkDialog and subclasses |
|
||||
| `GRID` | A grid of items | #GtkFlowBox |
|
||||
| `GRID_CELL` | An item in a grid | #GtkFlowBoxChild |
|
||||
| `IMG` | An image | #GtkImage, #GtkPicture |
|
||||
| `LABEL` | A visible name or caption for a user interface component | #GtkLabel |
|
||||
| `LIST` | A list of items | #GtkListBox |
|
||||
|
@ -1175,8 +1175,8 @@ typedef enum {
|
||||
* @GTK_ACCESSIBLE_ROLE_FEED: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_FORM: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_GENERIC: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_GRID: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_GRID_CELL: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_GRID: A grid of items.
|
||||
* @GTK_ACCESSIBLE_ROLE_GRID_CELL: An item in a grid.
|
||||
* @GTK_ACCESSIBLE_ROLE_GROUP: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_HEADING: Unused
|
||||
* @GTK_ACCESSIBLE_ROLE_IMG: An image.
|
||||
|
@ -547,6 +547,7 @@ gtk_flow_box_child_class_init (GtkFlowBoxChildClass *class)
|
||||
|
||||
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
|
||||
gtk_widget_class_set_css_name (widget_class, I_("flowboxchild"));
|
||||
gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GRID_CELL);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -3887,6 +3888,7 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
|
||||
NULL);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, I_("flowbox"));
|
||||
gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GRID);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user