diff options
| author | Gerd Moellmann | 2000-03-14 21:16:36 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-03-14 21:16:36 +0000 |
| commit | 383d6ffc5612a0113ffdac23a7e3dcfceb5100bd (patch) | |
| tree | be3df64d65d228eb995d806b90ee9bb59217e97a /src | |
| parent | 32be16dfed4c9fe92494e0560748ac6d9083fa88 (diff) | |
| download | emacs-383d6ffc5612a0113ffdac23a7e3dcfceb5100bd.tar.gz emacs-383d6ffc5612a0113ffdac23a7e3dcfceb5100bd.zip | |
(X_I18N_INHIBITED): Don't define.
(create_frame_xic): Remove conditional compilation on
X_I18N_INHIBITED.
(x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/xfns.c b/src/xfns.c index 496b9a931b0..8ed9b7d98d9 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -50,14 +50,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 50 | #include <sys/types.h> | 50 | #include <sys/types.h> |
| 51 | #include <sys/stat.h> | 51 | #include <sys/stat.h> |
| 52 | 52 | ||
| 53 | /* On some systems, the character-composition stuff is broken in X11R5. */ | ||
| 54 | |||
| 55 | #if defined (HAVE_X11R5) && ! defined (HAVE_X11R6) | ||
| 56 | #ifdef X11R5_INHIBIT_I18N | ||
| 57 | #define X_I18N_INHIBITED | ||
| 58 | #endif | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #ifndef VMS | 53 | #ifndef VMS |
| 62 | #if 1 /* Used to be #ifdef EMACS_BITMAP_FILES, but this should always work. */ | 54 | #if 1 /* Used to be #ifdef EMACS_BITMAP_FILES, but this should always work. */ |
| 63 | #include "bitmaps/gray.xbm" | 55 | #include "bitmaps/gray.xbm" |
| @@ -3075,7 +3067,6 @@ void | |||
| 3075 | create_frame_xic (f) | 3067 | create_frame_xic (f) |
| 3076 | struct frame *f; | 3068 | struct frame *f; |
| 3077 | { | 3069 | { |
| 3078 | #ifndef X_I18N_INHIBITED | ||
| 3079 | XIM xim; | 3070 | XIM xim; |
| 3080 | XIC xic = NULL; | 3071 | XIC xic = NULL; |
| 3081 | XFontSet xfs = NULL; | 3072 | XFontSet xfs = NULL; |
| @@ -3168,11 +3159,6 @@ create_frame_xic (f) | |||
| 3168 | FRAME_XIC (f) = xic; | 3159 | FRAME_XIC (f) = xic; |
| 3169 | FRAME_XIC_STYLE (f) = xic_style; | 3160 | FRAME_XIC_STYLE (f) = xic_style; |
| 3170 | FRAME_XIC_FONTSET (f) = xfs; | 3161 | FRAME_XIC_FONTSET (f) = xfs; |
| 3171 | #else /* X_I18N_INHIBITED */ | ||
| 3172 | FRAME_XIC (f) = NULL; | ||
| 3173 | FRAME_XIC_STYLE (f) = 0; | ||
| 3174 | FRAME_XIC_FONTSET (f) = NULL; | ||
| 3175 | #endif /* X_I18N_INHIBITED */ | ||
| 3176 | } | 3162 | } |
| 3177 | 3163 | ||
| 3178 | 3164 | ||
| @@ -3551,7 +3537,7 @@ x_window (f) | |||
| 3551 | f->output_data.x->border_width, | 3537 | f->output_data.x->border_width, |
| 3552 | CopyFromParent, /* depth */ | 3538 | CopyFromParent, /* depth */ |
| 3553 | InputOutput, /* class */ | 3539 | InputOutput, /* class */ |
| 3554 | FRAME_X_DISPLAY_INFO (f)->visual, | 3540 | FRAME_X_VISUAL (f), |
| 3555 | attribute_mask, &attributes); | 3541 | attribute_mask, &attributes); |
| 3556 | 3542 | ||
| 3557 | #ifdef HAVE_X_I18N | 3543 | #ifdef HAVE_X_I18N |
| @@ -9053,7 +9039,7 @@ x_kill_gs_process (pixmap, f) | |||
| 9053 | /* On displays with a mutable colormap, figure out the colors | 9039 | /* On displays with a mutable colormap, figure out the colors |
| 9054 | allocated for the image by looking at the pixels of an XImage for | 9040 | allocated for the image by looking at the pixels of an XImage for |
| 9055 | img->pixmap. */ | 9041 | img->pixmap. */ |
| 9056 | class = FRAME_X_DISPLAY_INFO (f)->visual->class; | 9042 | class = FRAME_X_VISUAL (f)->class; |
| 9057 | if (class != StaticColor && class != StaticGray && class != TrueColor) | 9043 | if (class != StaticColor && class != StaticGray && class != TrueColor) |
| 9058 | { | 9044 | { |
| 9059 | XImage *ximg; | 9045 | XImage *ximg; |