[gtk/ebassi/new-a11y: 8/9] a11y: Set the role for GtkScale



commit d41fbe8734ba2fd20dc3bb91a692beffa1a3fbc2
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jul 13 16:22:44 2020 +0100

    a11y: Set the role for GtkScale

 gtk/gtkscale.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index cbc7226fa3..09fb5b55b3 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -816,6 +816,8 @@ gtk_scale_class_init (GtkScaleClass *class)
                       GTK_SCROLL_END);
 
   gtk_widget_class_set_css_name (widget_class, I_("scale"));
+
+  gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_SLIDER);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]