[gtk/a11y/atspi] combobox: Use the combobox accessible role
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y/atspi] combobox: Use the combobox accessible role
- Date: Tue, 13 Oct 2020 22:32:14 +0000 (UTC)
commit e3620bdc22673623b194ed021362536e6befc215
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 13 17:53:39 2020 -0400
combobox: Use the combobox accessible role
Makes sense.
gtk/gtkcombobox.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index 8b6cf921bc..0da1daa52c 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -103,6 +103,10 @@
* contains a box with the .linked class. That box contains an entry and a
* button, both with the .combo class added.
* The button also contains another node with name arrow.
+ *
+ * # Accessibility
+ *
+ * GtkEntry uses the #GTK_ACCESSIBLE_ROLE_COMBO_BOX role.
*/
@@ -797,6 +801,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
gtk_widget_class_bind_template_callback (widget_class, gtk_combo_box_menu_hide);
gtk_widget_class_set_css_name (widget_class, I_("combobox"));
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_COMBO_BOX);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]