diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-12 00:19:55 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-12 15:10:40 -0400 |
commit | 35f70d5a992bdeaad50377411c7003a7506f0e46 (patch) | |
tree | 695ca064dc52cf116d84a8e35ecd29c96492df95 /gtk | |
parent | 54f1eb4c0463a9ab9ff7550fe3cb6453f36f7216 (diff) | |
download | gtk+-35f70d5a992bdeaad50377411c7003a7506f0e46.tar.gz |
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.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkwidget.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } /** |