summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-04-17 15:23:04 -0400
committerEmmanuele Bassi <ebassi@gnome.org>2021-04-19 19:22:20 +0100
commit9e8187bdc4ce5a50113a448a0f0bc70bdabbea26 (patch)
treef0a32229170fdb0ddd604c755edec3f0435b42ca /gtk/gtkentry.c
parent9fbd11e1be721953758b6154178d03d04bbfe54b (diff)
downloadgtk+-9e8187bdc4ce5a50113a448a0f0bc70bdabbea26.tar.gz
a11y: Track window states more closely
Orca ignores events unless the object is inside an object with role window and states ACTIVE and SHOWING. To arrange for this, introduce a new ACTIVE platform state, and set it for windows when they are active. This gets orca to be a lot more talkative.
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 8a1262bf14..e5a4de8255 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -351,6 +351,8 @@ gtk_entry_accessible_get_platform_state (GtkAccessible *self,
return gtk_widget_get_focusable (GTK_WIDGET (priv->text));
case GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED:
return gtk_widget_has_focus (GTK_WIDGET (priv->text));
+ case GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVE:
+ return FALSE;
default:
g_assert_not_reached ();
}