[gtk/a11y/atspi] dropdown: Use the combox accessible role



commit 9955d900dbd204f5efc14a58e4070c18b45c4eb5
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Oct 13 18:31:08 2020 -0400

    dropdown: Use the combox accessible role
    
    Its really just a combobox with another name.

 gtk/gtkdropdown.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c
index 8fad4bf1db..8a6969e856 100644
--- a/gtk/gtkdropdown.c
+++ b/gtk/gtkdropdown.c
@@ -72,6 +72,10 @@
  *
  * GtkDropDown has a single CSS node with name dropdown,
  * with the button and popover nodes as children.
+ *
+ * # Accessibility
+ *
+ * GtkDropDown uses the #GTK_ACCESSIBLE_ROLE_COMBO_BOX role.
  */
 
 struct _GtkDropDown
@@ -526,6 +530,7 @@ gtk_drop_down_class_init (GtkDropDownClass *klass)
   gtk_widget_class_bind_template_callback (widget_class, search_stop);
 
   gtk_widget_class_set_css_name (widget_class, I_("dropdown"));
+  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]