diff options
author | Neil <nyamatongwe@gmail.com> | 2017-01-04 09:32:52 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-01-04 09:32:52 +1100 |
commit | e49528db947df6b5ea6afbdd6fab354f4ae2aee8 (patch) | |
tree | d9506ca29fdd67f9236b8a90c798b0223ed8e813 | |
parent | b5d665fbc11fdf55ddd8c4f22b8962be09463707 (diff) | |
download | scintilla-mirror-e49528db947df6b5ea6afbdd6fab354f4ae2aee8.tar.gz |
Don't set window background on GTK+ 3.22 as this is deprecated.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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); |