keyboard handling change

Dirk Hohndel dirk at hohndel.org
Wed Jan 2 12:56:24 PST 2013


Dirk Hohndel <dirk at hohndel.org> writes:

> Salvador Cuñat <salvador.cunat at gmail.com> writes:
>
>> Hi.
>> 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
[...]
>
> 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. :-(

Ok, some more googling shows that his change was made in 2.22 and that
there's a compatibility header that allows including the older
keysyms. But that header of course doesn't exist on older versions.

Grrr.

A fix is in the works.

/D


More information about the subsurface mailing list