forked from aniani/vim
patch 8.2.2119: GTK3: status line background color is wrong
Problem: GTK3: status line background color is wrong. Solution: Don't change the code for earlier GTK3 versions. (closes #7444)
This commit is contained in:
@@ -4031,15 +4031,18 @@ set_cairo_source_rgba_from_color(cairo_t *cr, guicolor_T color)
|
|||||||
void
|
void
|
||||||
gui_mch_new_colors(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)
|
#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
|
#endif
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION(3,22,2)
|
#if GTK_CHECK_VERSION(3,22,2)
|
||||||
GtkStyleContext * const context
|
GtkStyleContext * const context =
|
||||||
= gtk_widget_get_style_context(gui.formwin);
|
gtk_widget_get_style_context(gui.formwin);
|
||||||
GtkCssProvider * const provider = gtk_css_provider_new();
|
GtkCssProvider * const provider = gtk_css_provider_new();
|
||||||
gchar * const css = g_strdup_printf(
|
gchar * const css = g_strdup_printf(
|
||||||
"widget#vim-gtk-form {\n"
|
"widget#vim-gtk-form {\n"
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2119,
|
||||||
/**/
|
/**/
|
||||||
2118,
|
2118,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user