summaryrefslogtreecommitdiff
path: root/gdk/gdkkeys.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-02-21 00:30:44 +0100
committerMatthias Clasen <mclasen@redhat.com>2012-02-21 01:50:18 +0100
commit9a92a1da896823b113e26e04268f4fe428e66587 (patch)
treede5885b55901d7dd15edee3e48c24609ffe0a68c /gdk/gdkkeys.h
parent8ec0cfd571da29b02dbdd3464cd9508ebec4cac1 (diff)
downloadgtk+-9a92a1da896823b113e26e04268f4fe428e66587.tar.gz
Add a way to get the current modifier state
Xkb makes this available to us, and it is useful if you want to do easter eggs that are triggered by Alt.
Diffstat (limited to 'gdk/gdkkeys.h')
-rw-r--r--gdk/gdkkeys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkkeys.h b/gdk/gdkkeys.h
index b085d246ca..91fbd3d179 100644
--- a/gdk/gdkkeys.h
+++ b/gdk/gdkkeys.h
@@ -110,6 +110,7 @@ PangoDirection gdk_keymap_get_direction (GdkKeymap *keymap)
gboolean gdk_keymap_have_bidi_layouts (GdkKeymap *keymap);
gboolean gdk_keymap_get_caps_lock_state (GdkKeymap *keymap);
gboolean gdk_keymap_get_num_lock_state (GdkKeymap *keymap);
+guint gdk_keymap_get_modifier_state (GdkKeymap *keymap);
void gdk_keymap_add_virtual_modifiers (GdkKeymap *keymap,
GdkModifierType *state);
gboolean gdk_keymap_map_virtual_modifiers (GdkKeymap *keymap,