Re: Can't find XK_Num_Lock when trying to compile gtk+3.0.10



Perfect!    It built the gdkkeys-x11.c and compiling went a lot further, but I've hit another error.

I'll ask about that in a new note to the list

thanks again!

tom





From:        Patrick Welche <prlw1 cam ac uk>
To:        twurgl goodyear com
Cc:        gtk-list gnome org
Date:        06/23/2011 09:17 AM
Subject:        Re: Can't find XK_Num_Lock when trying to compile gtk+3.0.10




On Thu, Jun 23, 2011 at 08:52:49AM -0400, twurgl goodyear com wrote:
> I am on SuSE 10.1 and believe I have all the prerequisite packages
> installed, yet I get:
>
>   CC     gdkkeys-x11.lo
> gdkkeys-x11.c: In function 'get_xkb':
> gdkkeys-x11.c:235: error: 'XK_Num_Lock' undeclared (first use in this
> function)

XK_Num_Lock lives in X11/keysymdef.h. I think it is usual to
#include <X11/keysym.h>, which in turn includes keysymdef.h.

It seems that gdk/gdkkeysyms-update.pl looks for keysymdef.h among
others, and attempts to make a gdkkeysyms.h from it?

Looking at gdkkeysyms.h, GDK_KEY_Num_Lock = 0xff7f matches XK_Num_Lock
which is also 0xff7f.

So, to cut a long story short, the attached (untested) patch, should
do the trick.

Cheers,

Patrick
[attachment "gdk.diff" deleted by Tom Wurgler/NA/GDYR]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]