summaryrefslogtreecommitdiff
path: root/gtk/gtkatcontextprivate.h
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/gtkatcontextprivate.h
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/gtkatcontextprivate.h')
-rw-r--r--gtk/gtkatcontextprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkatcontextprivate.h b/gtk/gtkatcontextprivate.h
index d9678cbea5..c05c04948f 100644
--- a/gtk/gtkatcontextprivate.h
+++ b/gtk/gtkatcontextprivate.h
@@ -83,11 +83,13 @@ typedef enum {
typedef enum {
GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLE,
GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED,
+ GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVE
} GtkAccessiblePlatformState;
typedef enum {
GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSABLE = 1 << GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLE,
GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSED = 1 << GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED,
+ GTK_ACCESSIBLE_PLATFORM_CHANGE_ACTIVE = 1 << GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVE,
} GtkAccessiblePlatformChange;
typedef enum {