diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-21 08:00:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-21 08:01:25 -0400 |
commit | 39dfdac771851a426c16207cdbfd5941a10f2f69 (patch) | |
tree | 55f9763543e285f30f98551c8364d75d1e43fac7 /gtk/gtkrange.c | |
parent | b7fa00e22d26037fd18e8cf8572cc3d5f30cc6e0 (diff) | |
download | gtk+-39dfdac771851a426c16207cdbfd5941a10f2f69.tar.gz |
range: Hide internals from accessibility
The nameless, faceless gizmos inside a range do not
contribute to the accessible experience at all, lets
not add them to the tree. All the accessible functionality
is on the main widget (either a scale or a scrollbar).
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r-- | gtk/gtkrange.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 6b9ead4fd0..650a9e292e 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -529,12 +529,13 @@ gtk_range_init (GtkRange *range) gtk_widget_update_orientation (GTK_WIDGET (range), priv->orientation); - priv->trough_widget = gtk_gizmo_new ("trough", - gtk_range_measure_trough, - gtk_range_allocate_trough, - gtk_range_render_trough, - NULL, - NULL, NULL); + priv->trough_widget = gtk_gizmo_new_with_role ("trough", + GTK_ACCESSIBLE_ROLE_NONE, + gtk_range_measure_trough, + gtk_range_allocate_trough, + gtk_range_render_trough, + NULL, + NULL, NULL); gtk_widget_set_parent (priv->trough_widget, GTK_WIDGET (range)); |