From 9955d900dbd204f5efc14a58e4070c18b45c4eb5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Oct 2020 18:31:08 -0400 Subject: [PATCH] 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