summaryrefslogtreecommitdiffstats
path: root/generic/tkEvent.c
diff options
context:
space:
mode:
authorgeorgeps <georgeps@noemail.net>2004-07-05 22:27:11 (GMT)
committergeorgeps <georgeps@noemail.net>2004-07-05 22:27:11 (GMT)
commit22d928852b67e900e3cf3e8b5cbc4f5a5197c62d (patch)
tree42bb1363a6e198207d18c465ca0a837ffd20763c /generic/tkEvent.c
parent6fa2a1a87ff0e4c0ff3a58a1aae4256a1a86d2f0 (diff)
downloadtk-22d928852b67e900e3cf3e8b5cbc4f5a5197c62d.zip
tk-22d928852b67e900e3cf3e8b5cbc4f5a5197c62d.tar.gz
tk-22d928852b67e900e3cf3e8b5cbc4f5a5197c62d.tar.bz2
The usage of the TK_XIM_SPOT definition was causing a build failure with some systems. I changed the function prototype and the CreateXIMSpot block to work correctly.
FossilOrigin-Name: 9d3eb922957e2959a5e7869953f3012d8558418c
Diffstat (limited to 'generic/tkEvent.c')
-rw-r--r--generic/tkEvent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c
index 16e4cfb..cd0daaf 100644
--- a/generic/tkEvent.c
+++ b/generic/tkEvent.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkEvent.c,v 1.21 2004/07/02 23:36:24 georgeps Exp $
+ * RCS: @(#) $Id: tkEvent.c,v 1.22 2004/07/05 22:27:12 georgeps Exp $
*/
#include "tkPort.h"
@@ -213,12 +213,12 @@ static TkWindow * GetTkWindowFromXEvent _ANSI_ARGS_((XEvent *eventPtr));
#ifdef TK_USE_INPUT_METHODS
static int InvokeInputMethods _ANSI_ARGS_((TkWindow *winPtr,
XEvent *eventPtr));
-#endif
-
#if TK_XIM_SPOT
static void CreateXIMSpotMethods _ANSI_ARGS_((TkWindow *winPtr));
#endif
+#endif /* TK_USE_INPUT_METHODS */
+
static int InvokeMouseHandlers _ANSI_ARGS_((TkWindow *winPtr,
unsigned long mask, XEvent *eventPtr));
@@ -329,7 +329,7 @@ InvokeMouseHandlers(winPtr, mask, eventPtr)
*
*---------------------------------------------------------
*/
-#if TK_XIM_SPOT
+#if defined(TK_USE_INPUT_METHODS) && TK_XIM_SPOT
static void
CreateXIMSpotMethods(winPtr)
TkWindow *winPtr;
@@ -379,7 +379,7 @@ CreateXIMSpotMethods(winPtr)
NULL);
}
}
-#endif /*TK_XIM_SPOT*/
+#endif
/*
*----------------------------------------------------------