diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-09 15:53:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-09 15:53:27 +0100 |
commit | 7988a6f0e9999d1103271024ab4ed26e5599de17 (patch) | |
tree | c37a616edc5e4c2d1aefe95cf3673c4cc1593e16 /src/gui_gtk_x11.c | |
parent | f46bf5204c3c55d23921b501db21a906d526eb45 (diff) | |
download | vim-git-7988a6f0e9999d1103271024ab4ed26e5599de17.tar.gz |
patch 8.2.2119: GTK3: status line background color is wrongv8.2.2119
Problem: GTK3: status line background color is wrong.
Solution: Don't change the code for earlier GTK3 versions. (closes #7444)
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 22788e84b..ec81d4efd 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -4031,15 +4031,18 @@ set_cairo_source_rgba_from_color(cairo_t *cr, guicolor_T color) void gui_mch_new_colors(void) { - if (gui.formwin != NULL && gtk_widget_get_window(gui.formwin) != NULL) + if (gui.drawarea != NULL +#if GTK_CHECK_VERSION(3,22,2) + && gui.formwin != NULL +#endif + && gtk_widget_get_window(gui.drawarea) != NULL) { #if !GTK_CHECK_VERSION(3,22,2) - GdkWindow * const da_win = gtk_widget_get_window(gui.formwin); + GdkWindow * const da_win = gtk_widget_get_window(gui.drawarea); #endif - #if GTK_CHECK_VERSION(3,22,2) - GtkStyleContext * const context - = gtk_widget_get_style_context(gui.formwin); + GtkStyleContext * const context = + gtk_widget_get_style_context(gui.formwin); GtkCssProvider * const provider = gtk_css_provider_new(); gchar * const css = g_strdup_printf( "widget#vim-gtk-form {\n" |