diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-10-12 19:00:03 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-10-12 21:45:41 -0400 |
commit | ade9e4b82af90666711474b00b2342b1380937f1 (patch) | |
tree | 713940f4b83f8babf16b2fac526a2d4eff7b9153 /gtk/gtkatcontextprivate.h | |
parent | 663934b2dcb3769e122e56adf1efcf333d3cee5c (diff) | |
download | gtk+-ade9e4b82af90666711474b00b2342b1380937f1.tar.gz |
accessible: Add gtk_accessible_get_platform_state
As a companion to go with the platform_change api,
add a gtk_accessible_get_platform_state() function
that can be used by backends to get the platform
state.
This is in preparation for making entries inherit
their focus states from the text widget within.
Diffstat (limited to 'gtk/gtkatcontextprivate.h')
-rw-r--r-- | gtk/gtkatcontextprivate.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkatcontextprivate.h b/gtk/gtkatcontextprivate.h index fb396c8ccc..4fec1444c8 100644 --- a/gtk/gtkatcontextprivate.h +++ b/gtk/gtkatcontextprivate.h @@ -81,8 +81,13 @@ typedef enum { } GtkAccessibleStateChange; typedef enum { - GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSABLE = 1 << 0, - GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSED = 1 << 1, + GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLE, + GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED, +} 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, } GtkAccessiblePlatformChange; struct _GtkATContext |