diff options
author | Lukáš Tyrychtr <ltyrycht@redhat.com> | 2023-02-27 13:24:56 +0100 |
---|---|---|
committer | Lukáš Tyrychtr <ltyrycht@redhat.com> | 2023-02-27 13:24:56 +0100 |
commit | b33bfe26fe5c7f044461427f34b2b843b191ff8e (patch) | |
tree | 884340ae35cff7b6e49ae5b301f89412f126c86e /gtk/a11y/gtkatspicontext.c | |
parent | 0cacaa08f5b6349d11812c2c778a41928c29c770 (diff) | |
download | gtk+-b33bfe26fe5c7f044461427f34b2b843b191ff8e.tar.gz |
a11y: Expose GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE to at-spi2
Previously, this property was not exposed to the a11y backend, now, it is.
Diffstat (limited to 'gtk/a11y/gtkatspicontext.c')
-rw-r--r-- | gtk/a11y/gtkatspicontext.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 03ae1a2cc3..b72a95d3ba 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -289,6 +289,13 @@ collect_states (GtkAtSpiContext *self, set_atspi_state (&states, ATSPI_STATE_REQUIRED); } + if (gtk_at_context_has_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE)) + { + value = gtk_at_context_get_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE); + if (gtk_boolean_accessible_value_get (value)) + set_atspi_state (&states, ATSPI_STATE_MULTISELECTABLE); + } + g_variant_builder_add (builder, "u", (guint32) (states & 0xffffffff)); g_variant_builder_add (builder, "u", (guint32) (states >> 32)); } |