From 71ad17cae1223114c192c9a5d49823aad5cd9f40 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 18 Apr 2017 18:31:27 +0100 Subject: Remove gdkkeysyms-compat.h The compatibility header was needed after GTK+ 3.0 renamed the key symbols from `GDK_*` to `GDK_KEY_*` to avoid collisions. --- gdk/gdkkeysyms-update.pl | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'gdk/gdkkeysyms-update.pl') diff --git a/gdk/gdkkeysyms-update.pl b/gdk/gdkkeysyms-update.pl index a255a04960..7bf9314fdf 100755 --- a/gdk/gdkkeysyms-update.pl +++ b/gdk/gdkkeysyms-update.pl @@ -56,9 +56,6 @@ die "Could not open file keysymdef.h: $!\n" unless open(IN_KEYSYMDEF, "<:utf8", # Output: gtk+/gdk/gdkkeysyms.h die "Could not open file gdkkeysyms.h: $!\n" unless open(OUT_GDKKEYSYMS, ">:utf8", "gdkkeysyms.h"); -# Output: gtk+/gdk/gdkkeysyms-compat.h -die "Could not open file gdkkeysyms-compat.h: $!\n" unless open(OUT_GDKKEYSYMS_COMPAT, ">:utf8", "gdkkeysyms-compat.h"); - my $LICENSE_HEADER= <) @@ -136,11 +118,8 @@ while () my $element = $keysymelements[1]; my $binding = $element; $binding =~ s/^XK_/GDK_KEY_/g; - my $compat_binding = $element; - $compat_binding =~ s/^XK_/GDK_/g; printf OUT_GDKKEYSYMS "#define %s 0x%03x\n", $binding, hex($keysymelements[2]); - printf OUT_GDKKEYSYMS_COMPAT "#define %s 0x%03x\n", $compat_binding, hex($keysymelements[2]); } close IN_KEYSYMDEF; @@ -178,11 +157,8 @@ while () my $element = $keysymelements[1]; my $binding = $element; $binding =~ s/^XF86XK_/GDK_KEY_/g; - my $compat_binding = $element; - $compat_binding =~ s/^XF86XK_/GDK_/g; printf OUT_GDKKEYSYMS "#define %s 0x%03x\n", $binding, hex($keysymelements[2]); - printf OUT_GDKKEYSYMS_COMPAT "#define %s 0x%03x\n", $compat_binding, hex($keysymelements[2]); } close IN_XF86KEYSYM; @@ -193,9 +169,4 @@ print OUT_GDKKEYSYMS<