diff options
| author | Alexander Gramiak | 2019-05-09 13:07:35 -0600 |
|---|---|---|
| committer | Alexander Gramiak | 2019-05-19 19:50:32 -0600 |
| commit | c0e146e4ec266edf348473c3db7ca8d16745f4f7 (patch) | |
| tree | 3f2070ccbf941ba14f43836f7cfa1b4c78979043 /src/xterm.h | |
| parent | 05b79539f4d22bfe5160777aa5a963aeb74b000c (diff) | |
| download | emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.tar.gz emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.zip | |
Introduce Emacs_Color struct and typedef
This avoids clashing with the XColor struct from X.
* src/dispextern [HAVE_X_WINDOWS]: Define Emacs_Color alias.
[!HAVE_X_WINDOWS]: Rename XColor compatibility struct to
Emacs_Color. Remove unused fields.
* src/gtkutil.c:
* src/gtkutil.h:
* src/image.c:
* src/nsterm.h:
* src/nsterm.m:
* src/termhooks.h:
* src/w32fns.c:
* src/w32term.c:
* src/w32term.h:
* src/xfaces.c:
* src/xfns.c:
* src/xterm.h: Use Emacs_Color over XColor outside of X-specific
sections.
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h index 84030d5c25e..758a1939d6e 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1224,7 +1224,8 @@ extern void destroy_frame_xic (struct frame *); | |||
| 1224 | extern void xic_set_preeditarea (struct window *, int, int); | 1224 | extern void xic_set_preeditarea (struct window *, int, int); |
| 1225 | extern void xic_set_statusarea (struct frame *); | 1225 | extern void xic_set_statusarea (struct frame *); |
| 1226 | extern void xic_set_xfontset (struct frame *, const char *); | 1226 | extern void xic_set_xfontset (struct frame *, const char *); |
| 1227 | extern bool x_defined_color (struct frame *, const char *, XColor *, bool, bool); | 1227 | extern bool x_defined_color (struct frame *, const char *, Emacs_Color *, |
| 1228 | bool, bool); | ||
| 1228 | #ifdef HAVE_X_I18N | 1229 | #ifdef HAVE_X_I18N |
| 1229 | extern void free_frame_xic (struct frame *); | 1230 | extern void free_frame_xic (struct frame *); |
| 1230 | # if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT | 1231 | # if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT |