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.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user