summaryrefslogtreecommitdiff
path: root/gtk/gtkbindings.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-08 13:35:51 -0400
committerColin Walters <walters@verbum.org>2010-09-08 18:51:44 -0400
commit913cdf3be750a1e74c09b20edf55a57f9a919fcc (patch)
tree0d2129a167579c0d896bb9213503619b2ef44d1f /gtk/gtkbindings.c
parent03c19e37af1f7aa9af8a48bcc9dc023397f8693f (diff)
downloadgtk+-913cdf3be750a1e74c09b20edf55a57f9a919fcc.tar.gz
GDK: Prefix key names with KEY_
The keysyms create a lot of potential namespace conflicts for C, and are especially problematic for introspection, where we take constants into the namespace, so GDK_Display conflicts with GdkDisplay. For C application compatiblity, add gdkkeysyms-compat.h which uses the old names. Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is the gtkimcontextsimple.c, since porting that requires porting more custom Perl code.
Diffstat (limited to 'gtk/gtkbindings.c')
-rw-r--r--gtk/gtkbindings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index 406331392a..648e572144 100644
--- a/gtk/gtkbindings.c
+++ b/gtk/gtkbindings.c
@@ -131,8 +131,8 @@ binding_key_hash_insert_entry (GtkKeyHash *key_hash,
*/
if (entry->modifiers & GDK_SHIFT_MASK)
{
- if (keyval == GDK_Tab)
- keyval = GDK_ISO_Left_Tab;
+ if (keyval == GDK_KEY_Tab)
+ keyval = GDK_KEY_ISO_Left_Tab;
else
keyval = gdk_keyval_to_upper (keyval);
}