comparison src/input-method-motif.c @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 84b14dcb0985
children 98b3721724bd
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
39 void 39 void
40 Initialize_Locale (void) 40 Initialize_Locale (void)
41 { 41 {
42 char *locale; 42 char *locale;
43 43
44 /* dverna - Nov. 98: ### DON'T DO THIS !!! The default XtLanguageProc 44 /* dverna - Nov. 98: #### DON'T DO THIS !!! The default XtLanguageProc
45 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level 45 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level
46 locale management, and especially the value of LC_NUMERIC. Anyway, since 46 locale management, and especially the value of LC_NUMERIC. Anyway, since
47 at this point, we don't know yet whether we're gonna need an X11 frame, 47 at this point, we don't know yet whether we're gonna need an X11 frame,
48 we should really do it manually and not use Xlib's dumb default routine */ 48 we should really do it manually and not use Xlib's dumb default routine */
49 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/ 49 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/
160 } 160 }
161 161
162 void 162 void
163 XIM_SetSpotLocation (struct frame *f, int x, int y) 163 XIM_SetSpotLocation (struct frame *f, int x, int y)
164 { 164 {
165 /* ### FIX: Must make sure spot fits within Preedit Area */ 165 /* #### FIX: Must make sure spot fits within Preedit Area */
166 XPoint *spot = &(FRAME_X_XIC_SPOT (f)); 166 XPoint *spot = &(FRAME_X_XIC_SPOT (f));
167 if (spot->x == (short) x && 167 if (spot->x == (short) x &&
168 spot->y == (short) y) 168 spot->y == (short) y)
169 return; 169 return;
170 170