diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-21 22:10:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-21 22:10:12 +0200 |
commit | 36edf0685c8b55ee3ce709058d83ada8027fec1e (patch) | |
tree | 06e655f23ec2b4c9b4be5acf22b0869506bddd6b /src/gui.h | |
parent | f36213597d737ab500771e87edcf121acd55e277 (diff) | |
download | vim-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |