Tk Source Code

Check-in [62d32367]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:silence compiler warning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-5-branch
Files: files | file ages | folders
SHA1: 62d32367e1dcdd34fcb212b95dbdeb1fb5826c8e
User & Date: dgp 2013-04-01 17:53:25
Context
2013-04-03
13:24
merge release to 8.5; revert features not included in release check-in: 2d26c9cb user: dgp tags: core-8-5-branch
2013-04-01
18:15
Merge 8.5. check-in: bf668890 user: dgp tags: core-8-5-14rc
17:53
silence compiler warning check-in: 43d0360d user: dgp tags: trunk
17:53
silence compiler warning check-in: 62d32367 user: dgp tags: core-8-5-branch
17:12
3607830 Runtime checks that Xkb is available in the X server before trying to use. Adapted from patch from Brian Griffin. check-in: 9b8bdc81 user: dgp tags: core-8-5-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to unix/tkUnixEvent.c.

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <signal.h>
#ifdef HAVE_XKBKEYCODETOKEYSYM
#  include <X11/XKBlib.h>
/* Work around stupid un-const-ified Xkb headers.  Grrrrr.... */
#  define XkbOpenDisplay(D,V,E,M,m,R) \
	(XkbOpenDisplay)((char *)(D),(V),(E),(M),(m),(R))
#else
#  define XkbOpenDisplay(D,V,E,M,m,R) (NULL)
#endif

/*
 * The following static indicates whether this module has been initialized in
 * the current thread.
 */








|







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <signal.h>
#ifdef HAVE_XKBKEYCODETOKEYSYM
#  include <X11/XKBlib.h>
/* Work around stupid un-const-ified Xkb headers.  Grrrrr.... */
#  define XkbOpenDisplay(D,V,E,M,m,R) \
	(XkbOpenDisplay)((char *)(D),(V),(E),(M),(m),(R))
#else
#  define XkbOpenDisplay(D,V,E,M,m,R) (V),(E),(M),(m),(R),(NULL)
#endif

/*
 * The following static indicates whether this module has been initialized in
 * the current thread.
 */