From 36edf0685c8b55ee3ce709058d83ada8027fec1e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 21 Jul 2016 22:10:12 +0200 Subject: patch 7.4.2089 Problem: Color handling of X11 GUIs is too complicated. Solution: Simplify the code. Use RGBA where appropriate. (Kazunobu Kuriyama) --- src/gui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui.h') diff --git a/src/gui.h b/src/gui.h index 4e557ad3b..81c6b9ab5 100644 --- a/src/gui.h +++ b/src/gui.h @@ -380,9 +380,15 @@ typedef struct Gui GtkWidget *menubar_h; /* menubar handle */ GtkWidget *toolbar_h; /* toolbar handle */ # endif +# ifdef USE_GTK3 + GdkRGBA *fgcolor; /* GDK-styled foreground color */ + GdkRGBA *bgcolor; /* GDK-styled background color */ + GdkRGBA *spcolor; /* GDK-styled special color */ +# else GdkColor *fgcolor; /* GDK-styled foreground color */ GdkColor *bgcolor; /* GDK-styled background color */ GdkColor *spcolor; /* GDK-styled special color */ +# endif # ifdef USE_GTK3 cairo_surface_t *surface; /* drawarea surface */ gboolean by_signal; /* cause of draw operation */ -- cgit v1.2.1