Mercurial > hg > xemacs-beta
comparison src/input-method-motif.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
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), \ | 120 XtOffsetOf(xim_resources_t, field), XtRString, default_value } |
121 XtRString, (XtPointer) (default_value) } | |
122 | 121 |
123 static XtResource resources[] = | 122 static XtResource resources[] = |
124 { | 123 { |
125 /* name class represent'n field default value */ | 124 /* name class represent'n field default value */ |
126 res(XtNfontSet, XtCFontSet, XtRFontSet, fontset, XtDefaultFontSet), | 125 res(XtNfontSet, XtCFontSet, XtRFontSet, fontset, XtDefaultFontSet), |
160 } | 159 } |
161 | 160 |
162 void | 161 void |
163 XIM_SetSpotLocation (struct frame *f, int x, int y) | 162 XIM_SetSpotLocation (struct frame *f, int x, int y) |
164 { | 163 { |
165 /* #### FIX: Must make sure spot fits within Preedit Area */ | 164 /* ### FIX: Must make sure spot fits within Preedit Area */ |
166 XPoint *spot = &(FRAME_X_XIC_SPOT (f)); | 165 XPoint *spot = &(FRAME_X_XIC_SPOT (f)); |
167 if (spot->x == (short) x && | 166 if (spot->x == (short) x && |
168 spot->y == (short) y) | 167 spot->y == (short) y) |
169 return; | 168 return; |
170 | 169 |