Mercurial > hg > xemacs-beta
comparison src/input-method-motif.c @ 185:3d6bfa290dbd r20-3b19
Import from CVS: tag r20-3b19
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:55:28 +0200 |
parents | 2d532a89d707 |
children | e45d5e7c476e |
comparison
equal
deleted
inserted
replaced
184:bcd2674570bf | 185:3d6bfa290dbd |
---|---|
38 | 38 |
39 void | 39 void |
40 Initialize_Locale (void) | 40 Initialize_Locale (void) |
41 { | 41 { |
42 char *locale; | 42 char *locale; |
43 | 43 |
44 XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL); | 44 XtSetLanguageProc (NULL, (XtLanguageProc) NULL, NULL); |
45 if ((locale = setlocale (LC_ALL, "")) == NULL) | 45 if ((locale = setlocale (LC_ALL, "")) == NULL) |
46 { | 46 { |
47 stderr_out ("Can't set locale.\n"); | 47 stderr_out ("Can't set locale.\n"); |
48 stderr_out ("Using C locale instead.\n"); | 48 stderr_out ("Using C locale instead.\n"); |
70 { | 70 { |
71 stderr_out ("X Windows does not even support locale `C'!\n"); | 71 stderr_out ("X Windows does not even support locale `C'!\n"); |
72 return; | 72 return; |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 if (XSetLocaleModifiers ("") == NULL) | 76 if (XSetLocaleModifiers ("") == NULL) |
77 { | 77 { |
78 stderr_out ("XSetLocaleModifiers(\"\") failed\n"); | 78 stderr_out ("XSetLocaleModifiers(\"\") failed\n"); |
79 stderr_out ("Check the value of the XMODIFIERS environment variable.\n"); | 79 stderr_out ("Check the value of the XMODIFIERS environment variable.\n"); |
80 } | 80 } |
101 { | 101 { |
102 XFontSet fontset; | 102 XFontSet fontset; |
103 Pixel fg; | 103 Pixel fg; |
104 Pixel bg; | 104 Pixel bg; |
105 } xim_resources_t; | 105 } xim_resources_t; |
106 | 106 |
107 xim_resources_t xim_resources; | 107 xim_resources_t xim_resources; |
108 | 108 |
109 /* mrb: #### Fix so that background and foreground is set from | 109 /* mrb: #### Fix so that background and foreground is set from |
110 default face, rather than foreground and background resources, or | 110 default face, rather than foreground and background resources, or |
111 that the user can use set-frame-parameters to set xic attributes */ | 111 that the user can use set-frame-parameters to set xic attributes */ |
112 | 112 |
113 #define res(name, class, representation, field, default_value) \ | 113 #define res(name, class, representation, field, default_value) \ |