comparison src/input-method-motif.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents d883f39b8495
children 697ef44129c6
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
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);*/
113 113
114 /* mrb: #### Fix so that background and foreground is set from 114 /* mrb: #### Fix so that background and foreground is set from
115 default face, rather than foreground and background resources, or 115 default face, rather than foreground and background resources, or
116 that the user can use set-frame-parameters to set xic attributes */ 116 that the user can use set-frame-parameters to set xic attributes */
117 117
118 #define res(name, class, representation, field, default_value) \ 118 #define res(name, class, representation, field, default_value) \
119 { name, class, representation, sizeof(xim_resources.field), \ 119 { name, class, representation, sizeof(xim_resources.field), \
120 XtOffsetOf(xim_resources_t, field), XtRString, default_value } 120 XtOffsetOf(xim_resources_t, field), \
121 XtRString, (XtPointer) (default_value) }
121 122
122 static XtResource resources[] = 123 static XtResource resources[] =
123 { 124 {
124 /* name class represent'n field default value */ 125 /* name class represent'n field default value */
125 res(XtNfontSet, XtCFontSet, XtRFontSet, fontset, XtDefaultFontSet), 126 res(XtNfontSet, XtCFontSet, XtRFontSet, fontset, XtDefaultFontSet),
159 } 160 }
160 161
161 void 162 void
162 XIM_SetSpotLocation (struct frame *f, int x, int y) 163 XIM_SetSpotLocation (struct frame *f, int x, int y)
163 { 164 {
164 /* ### FIX: Must make sure spot fits within Preedit Area */ 165 /* #### FIX: Must make sure spot fits within Preedit Area */
165 XPoint *spot = &(FRAME_X_XIC_SPOT (f)); 166 XPoint *spot = &(FRAME_X_XIC_SPOT (f));
166 if (spot->x == (short) x && 167 if (spot->x == (short) x &&
167 spot->y == (short) y) 168 spot->y == (short) y)
168 return; 169 return;
169 170