Subject: | tools/genkeysyms.pl generates bad keys on OS X |
When building Gtk2-1.222 on Mac OS X (version 10.6.4, building against Gtk 2.22.0 installed via Homebrew, on Perl 5.12.1 installed via perlbrew), the test
suite fails, and the generated Gtk2::Gdk::Keysyms module contains keys of the form "KEY_Escape" instead of the normal "Escape." Attached is a patch to
remedy this.
Subject: | fix-keysyms.patch |
--- Gtk2-1.222-old/tools/genkeysyms.pl 2010-11-22 01:08:35.000000000 -0600
+++ Gtk2-1.222/tools/genkeysyms.pl 2010-11-22 01:08:41.000000000 -0600
@@ -10,7 +10,7 @@
print "package Gtk2::Gdk::Keysyms;\n";
print "\%Gtk2::Gdk::Keysyms = (\n";
while (<IN>) {
- /^#define\sGDK_([^ \t]*)\s+(0x[0-9A-Fa-f]+)/ and
+ /^#define\sGDK_KEY_([^ \t]*)\s+(0x[0-9A-Fa-f]+)/ and
print " '$1' => $2,\n";
}
print ");\n";