summaryrefslogtreecommitdiff
path: root/gdk/gdkkeys.c
diff options
context:
space:
mode:
authorMichael Natterer <mitch@lanedo.com>2011-11-18 15:14:31 +0100
committerMichael Natterer <mitch@gimp.org>2011-11-18 15:14:31 +0100
commit9c79f9f868617a918e301c14ebeeff1bdc4c7e9d (patch)
tree5f0ad8393b830c1ff6d8b150937b1e6e6011b487 /gdk/gdkkeys.c
parent1c8481a6ea52f34210177f54159d231ea4ba0b7d (diff)
downloadgtk+-9c79f9f868617a918e301c14ebeeff1bdc4c7e9d.tar.gz
Turn the private #define for the group-shifting modifier into API
Add GDK_MODIFIER_INTENT_SHIFT_GROUP to enum GdkModifierIntent and handle it in gdk_keymap_get_modifier_mask(). Add an X11 impl of the method and return keymap_x11->group_switch_mask. Return 0 from the default impl because we don't know.
Diffstat (limited to 'gdk/gdkkeys.c')
-rw-r--r--gdk/gdkkeys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index a12d68d493..bd3f7dd7a9 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -634,6 +634,9 @@ gdk_keymap_real_get_modifier_mask (GdkKeymap *keymap,
case GDK_MODIFIER_INTENT_NO_TEXT_INPUT:
return GDK_MOD1_MASK | GDK_CONTROL_MASK;
+ case GDK_MODIFIER_INTENT_SHIFT_GROUP:
+ return 0;
+
default:
g_return_val_if_reached (0);
}