summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-08 07:52:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-08 07:52:43 (GMT)
commit7aee8ed2b10f0405745287f078b14e3ddf7a0367 (patch)
tree90799a7b2f4b7234b334f330b8d6caac5b824948 /unix
parent46aecf3d998cb19bd8107932e7f95cf5abbc41a9 (diff)
parent7d38dfda3ce110288097bed15c0ebc8728e3e70c (diff)
downloadtk-7aee8ed2b10f0405745287f078b14e3ddf7a0367.zip
tk-7aee8ed2b10f0405745287f078b14e3ddf7a0367.tar.gz
tk-7aee8ed2b10f0405745287f078b14e3ddf7a0367.tar.bz2
Don't work around XkbOpenDisplay's non-const-ness with a macro, when there is only a single call. A type-cate suffices.
Merge-mark core-8-5-14, just to document that really all changes are merged back.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixEvent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixEvent.c b/unix/tkUnixEvent.c
index 53e01ed..0cc3731 100644
--- a/unix/tkUnixEvent.c
+++ b/unix/tkUnixEvent.c
@@ -14,9 +14,6 @@
#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
@@ -137,8 +134,11 @@ TkpOpenDisplay(
** that the serve supports it. The XkbOpenDisplay call
** will perform this check and return NULL if the extension
** is not supported.
+ **
+ ** Work around un-const-ified Xkb headers using (char *) cast.
*/
- display = XkbOpenDisplay(displayNameStr, &event, &error, &major, &minor, &reason);
+ display = XkbOpenDisplay((char *)displayNameStr, &event, &error, &major,
+ &minor, &reason);
if (display == NULL) {
/*fprintf(stderr,"event=%d error=%d major=%d minor=%d reason=%d\nDisabling xkb\n",
Fixed a bug where adjacent 'x' and '^' where not handled properly.pspjuth2001-08-221-3/+11 * generic/tkPack.c (TkParsePadAmount): added lint init for sepChar.hobbs2001-08-221-2/+2 * Objectified grid and pack commands.pspjuth2001-08-214-542/+554 * TkGetWindowFromObj was useless CPU waster; now caches window names *safely*dkf2001-08-213-17/+115 * Grid configure rejected initial "x" and "^". [Bug #418664]pspjuth2001-08-181-2/+3 * The selection highlighting of text objects in the canvas widgetdrh2001-08-171-4/+4 * Fixed a stupid error that's been in there for ages...dkf2001-08-171-6/+7 * Register Tk's object types with Tcl (Tcl Bug 450545)dkf2001-08-1510-37/+89 * *Bumped up patchlevel to 8.4a4 to distinguishdgp2001-08-081-3/+3 * * TIP 44 changes specific to the Mac anddgp2001-08-062-8/+9 * Merged changes from feature branch dgp-privates-into-namespace,dgp2001-08-012-10/+10 * * generic/default.h: Include tkWinDefault.hmdejong2001-07-241-2/+3 * The code for generating postscript of a bitmap image was apparently neverdrh2001-07-141-46/+140 * * tests/canvas.test:hobbs2001-07-041-13/+8 * * generic/tkEntry.c: corrected missing Tcl_Release that causedhobbs2001-07-032-28/+52 * * generic/tkCanvArc.c:hobbs2001-07-037-279/+266 * * generic/tkImgGIF.c (Mgetc): corrected screwy use of ternaryhobbs2001-07-031-2/+3 * * generic/tkWindow.c (Tk_DestroyWindow): changed to usehobbs2001-07-031-7/+7 * * library/console.tcl:hobbs2001-07-032-18/+104 * * generic/tkEntry.c (DestroyEntry): used Tcl_EventuallyFreehobbs2001-07-021-4/+6 * Upgraded frame to use the newer TK_OPTIONpspjuth2001-05-282-136/+235 * * doc/TkInitStubs.3:hobbs2001-05-222-5/+5 * implement TIP11, -compound option for menubutton widgettmh2001-05-212-2/+27 * Better handling of when image creation nukes the main window so nowdkf2001-04-121-3/+8 * * generic/tkMenu.c (TkInvokeMenu): checked for menu deletionhobbs2001-04-031-7/+13 * * tests/listbox.test: added test listbox-27.1, delete duringhobbs2001-04-031-14/+17 * * tests/entry.test: added tests entry-20.*, delete during widgethobbs2001-04-031-11/+53 * * tests/canvas.test: test of canvas delete during eventhobbs2001-04-03