[gtk/a11y/atspi] Pass orientation property to accessible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y/atspi] Pass orientation property to accessible
- Date: Mon, 12 Oct 2020 19:11:08 +0000 (UTC)
commit 35f70d5a992bdeaad50377411c7003a7506f0e46
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]