summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorLukáš Tyrychtr <ltyrycht@redhat.com>2023-02-27 14:10:11 +0100
committerLukáš Tyrychtr <ltyrycht@redhat.com>2023-02-27 14:10:11 +0100
commit9d4bb7726318007a4a069c9a40d5d8633cc2d4b2 (patch)
tree19e6350d325df8bd9f3f29883ca7b495afce418c /gtk/a11y
parent0d6cee97634e1817c8436166f6baab7f46785fad (diff)
downloadgtk+-9d4bb7726318007a4a069c9a40d5d8633cc2d4b2.tar.gz
a11y: Expose GTK_ACCESSIBLE_PROPERTY_HAS_POPUP
This property was not exposed before, not it is.
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkatspicontext.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index b72a95d3ba..abdb385933 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -296,6 +296,13 @@ collect_states (GtkAtSpiContext *self,
set_atspi_state (&states, ATSPI_STATE_MULTISELECTABLE);
}
+ if (gtk_at_context_has_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_HAS_POPUP))
+ {
+ value = gtk_at_context_get_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_HAS_POPUP);
+ if (gtk_boolean_accessible_value_get (value))
+ set_atspi_state (&states, ATSPI_STATE_HAS_POPUP);
+ }
+
g_variant_builder_add (builder, "u", (guint32) (states & 0xffffffff));
g_variant_builder_add (builder, "u", (guint32) (states >> 32));
}