[gtk/matthiasc/a11y] Pass orientation property to accessible



commit 6cedd65829d409038590ebd79d75a41aa9a3d881
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 12 00:19:55 2020 -0400

    Pass orientation property to accessible
    
    We should set the accessible properties we have,
    where they make sense. So set orientation, if the
    widget is orientable.

 gtk/gtkwidget.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index af1f84c051..a0e2d5ed13 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12143,6 +12143,10 @@ gtk_widget_update_orientation (GtkWidget      *widget,
       gtk_widget_add_css_class (widget, "vertical");
       gtk_widget_remove_css_class (widget, "horizontal");
     }
+
+  gtk_accessible_update_property (GTK_ACCESSIBLE (widget),
+                                  GTK_ACCESSIBLE_PROPERTY_ORIENTATION, orientation,
+                                  -1);
 }
 
 /**


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