summaryrefslogtreecommitdiff
path: root/src/gui.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-21 22:10:12 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-21 22:10:12 +0200
commit36edf0685c8b55ee3ce709058d83ada8027fec1e (patch)
tree06e655f23ec2b4c9b4be5acf22b0869506bddd6b /src/gui.h
parentf36213597d737ab500771e87edcf121acd55e277 (diff)
downloadvim-git-36edf0685c8b55ee3ce709058d83ada8027fec1e.tar.gz
patch 7.4.2089v7.4.2089
Problem: Color handling of X11 GUIs is too complicated. Solution: Simplify the code. Use RGBA where appropriate. (Kazunobu Kuriyama)
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h6
1 files changed, 6 insertions, 0 deletions
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 */