From e49528db947df6b5ea6afbdd6fab354f4ae2aee8 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 4 Jan 2017 09:32:52 +1100 Subject: Don't set window background on GTK+ 3.22 as this is deprecated. --- gtk/ScintillaGTK.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index e6bafc938..753a52c3b 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2400,7 +2400,9 @@ void ScintillaGTK::StyleSetText(GtkWidget *widget, GtkStyle *, void*) { void ScintillaGTK::RealizeText(GtkWidget *widget, void*) { // Set NULL background to avoid automatic clearing so Scintilla responsible for all drawing if (WindowFromWidget(widget)) { -#if GTK_CHECK_VERSION(3,0,0) +#if GTK_CHECK_VERSION(3,22,0) + // Appears unnecessary +#elif GTK_CHECK_VERSION(3,0,0) gdk_window_set_background_pattern(WindowFromWidget(widget), NULL); #else gdk_window_set_back_pixmap(WindowFromWidget(widget), NULL, FALSE); -- cgit v1.2.3