summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-10-16 21:46:10 (GMT)
committerhobbs <hobbs>2001-10-16 21:46:10 (GMT)
commite0bc5f98d674ab9bece488123208ad197828b333 (patch)
tree0ffae761c7446f038fc08d3601a84c755c5c7365
parent82c0df4a9110e9836f3374e6b7f0d0903fbc0cad (diff)
downloadtk-e0bc5f98d674ab9bece488123208ad197828b333.zip
tk-e0bc5f98d674ab9bece488123208ad197828b333.tar.gz
tk-e0bc5f98d674ab9bece488123208ad197828b333.tar.bz2
* generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
basic XIM input on Unix. [Patch #412727] (fabian)
-rw-r--r--ChangeLog5
-rw-r--r--generic/tkWindow.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b9c51a2..42b8e4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-16 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
+ basic XIM input on Unix. [Patch #412727] (fabian)
+
2001-10-15 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure:
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index f881c5b..b18cb40 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.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: tkWindow.c,v 1.16.2.2 2001/08/28 00:13:58 hobbs Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.16.2.3 2001/10/16 21:46:10 hobbs Exp $
*/
#include "tkPort.h"
@@ -2465,6 +2465,11 @@ OpenIM(dispPtr)
#else
unsigned short i;
XIMStyles *stylePtr;
+ char *modifier_list;
+
+ if ((modifier_list = XSetLocaleModifiers("")) == NULL) {
+ goto error;
+ }
dispPtr->inputMethod = XOpenIM(dispPtr->display, NULL, NULL, NULL);
if (dispPtr->inputMethod == NULL) {