To: vim_dev@googlegroups.com Subject: Patch 8.2.2119 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2119 Problem: GTK3: status line background color is wrong. Solution: Don't change the code for earlier GTK3 versions. (closes #7444) Files: src/gui_gtk_x11.c *** ../vim-8.2.2118/src/gui_gtk_x11.c 2020-12-08 20:31:12.355320557 +0100 --- src/gui_gtk_x11.c 2020-12-09 15:53:10.293322553 +0100 *************** *** 4031,4045 **** void gui_mch_new_colors(void) { ! if (gui.formwin != NULL && gtk_widget_get_window(gui.formwin) != NULL) { #if !GTK_CHECK_VERSION(3,22,2) ! GdkWindow * const da_win = gtk_widget_get_window(gui.formwin); #endif - #if GTK_CHECK_VERSION(3,22,2) ! 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" --- 4031,4048 ---- void gui_mch_new_colors(void) { ! 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.drawarea); #endif #if GTK_CHECK_VERSION(3,22,2) ! 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" *** ../vim-8.2.2118/src/version.c 2020-12-09 13:16:09.970838581 +0100 --- src/version.c 2020-12-09 15:46:53.706726524 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2119, /**/ -- My Go, this amn keyboar oesn't have a . /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///