keyboard handling change
dirk at hohndel.org
Wed Jan 2 12:52:36 PST 2013
Salvador Cuñat <salvador.cunat at gmail.com> writes:
> I can't compile this patch, I get:
> gtk-gui.c: In function ‘on_key_press’:
> gtk-gui.c:1154: error: ‘GDK_KEY_Up’ undeclared (first use in this function)
> gtk-gui.c:1154: error: (Each undeclared identifier is reported only once
> gtk-gui.c:1154: error: for each function it appears in.)
> gtk-gui.c:1157: error: ‘GDK_KEY_Down’ undeclared (first use in this function)
> gtk-gui.c:1160: error: ‘GDK_KEY_Left’ undeclared (first use in this function)
> gtk-gui.c:1163: error: ‘GDK_KEY_Right’ undeclared (first use in this function)
> make: *** [gtk-gui.o] Error 1
> Obviously it's because I'm using GTK2.
So am I :-)
> I think in the next release of subsurface will be necessary to include some
> minimum requirements.
It should compile with any reasonably recent (i.e., not Debian stable)
Linux distribution. I don't think we use any interfaces that are newer
than Gnome 2.18 or something ancient like that. I intentionally didn't
use a couple of the newer interfaces to handle action groups that were
added in 2.28...
All these should be defined in /usr/include/gtk-2.0/gdk/gdkkeysyms.h
And of course looking into this a little more it appears that Gtk
changed these from GDK_Up to GDK_KEY_Up (etc) somewhere between 2.20 and
2.24. That sucks. :-(
Which distribution / OS are you building on?
More information about the subsurface