summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorLukáš Tyrychtr <ltyrycht@redhat.com>2023-03-06 17:15:54 +0100
committerLukáš Tyrychtr <ltyrycht@redhat.com>2023-03-06 17:15:54 +0100
commitb669295fd81aaaefa91af31b046cb54ebda3bf68 (patch)
tree1549f8860cc16898ad9e93b2a43993875ae74f82 /gtk/a11y
parentcfc2de4e3d93ef2bcad1f567eef4b430c9244549 (diff)
downloadgtk+-b669295fd81aaaefa91af31b046cb54ebda3bf68.tar.gz
a11y: When an accessible has GTK_STATE_CHECKED, set its ATSPI_STATE_CHECKABLE as well
This allows, for example, checkable list itemss.
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkatspicontext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index dca263902e..d7eede4429 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -203,6 +203,7 @@ collect_states (GtkAtSpiContext *self,
if (gtk_at_context_has_accessible_state (ctx, GTK_ACCESSIBLE_STATE_CHECKED))
{
+ set_atspi_state (&states, ATSPI_STATE_CHECKABLE);
value = gtk_at_context_get_accessible_state (ctx, GTK_ACCESSIBLE_STATE_CHECKED);
switch (gtk_tristate_accessible_value_get (value))
{