diff options
author | Alexander Gramiak <agrambot@gmail.com> | 2019-05-09 13:07:35 -0600 |
---|---|---|
committer | Alexander Gramiak <agrambot@gmail.com> | 2019-05-19 19:50:32 -0600 |
commit | c0e146e4ec266edf348473c3db7ca8d16745f4f7 (patch) | |
tree | 3f2070ccbf941ba14f43836f7cfa1b4c78979043 /src/gtkutil.h | |
parent | 05b79539f4d22bfe5160777aa5a963aeb74b000c (diff) | |
download | emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.tar.gz emacs-c0e146e4ec266edf348473c3db7ca8d16745f4f7.tar.bz2 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/gtkutil.h')
-rw-r--r-- | src/gtkutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index ec899781ca8..229aa08f817 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h @@ -166,7 +166,7 @@ extern void xg_free_frame_widgets (struct frame *f); extern void xg_set_background_color (struct frame *f, unsigned long bg); extern bool xg_check_special_colors (struct frame *f, const char *color_name, - XColor *color); + Emacs_Color *color); extern void xg_set_frame_icon (struct frame *f, Pixmap icon_pixmap, |