comparison src/input-method-xlib.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 3a7e78e1142d
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
129 void 129 void
130 Initialize_Locale (void) 130 Initialize_Locale (void)
131 { 131 {
132 char *locale; 132 char *locale;
133 133
134 /* dverna - Nov. 98: ### DON'T DO THIS !!! The default XtLanguageProc 134 /* dverna - Nov. 98: #### DON'T DO THIS !!! The default XtLanguageProc
135 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level 135 routine calls setlocale(LC_ALL, lang) which fucks up our lower-level
136 locale management, and especially the value of LC_NUMERIC. Anyway, since 136 locale management, and especially the value of LC_NUMERIC. Anyway, since
137 at this point, we don't know yet whether we're gonna need an X11 frame, 137 at this point, we don't know yet whether we're gonna need an X11 frame,
138 we should really do it manually and not use Xlib's dumb default routine */ 138 we should really do it manually and not use Xlib's dumb default routine */
139 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/ 139 /*XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL);*/
479 return; 479 return;
480 480
481 spot->x = (short) x; 481 spot->x = (short) x;
482 spot->y = (short) y; 482 spot->y = (short) y;
483 483
484 /* ### FIX: Must make sure spot fits within Preedit Area */ 484 /* #### FIX: Must make sure spot fits within Preedit Area */
485 XIC_Value (Set, xic, XNPreeditAttributes, XNSpotLocation, spot); 485 XIC_Value (Set, xic, XNPreeditAttributes, XNSpotLocation, spot);
486 #ifdef DEBUG_XIM 486 #ifdef DEBUG_XIM
487 stderr_out ("Spot: %d %d\n", spot->x, spot->y); 487 stderr_out ("Spot: %d %d\n", spot->x, spot->y);
488 #endif 488 #endif
489 } 489 }