From a35816c92fe5d43a65b3bfd83740690ce84f7420 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 14 Jul 2016 16:55:36 +0200 Subject: [PATCH] Fix custom search entry background on Adwaita 3.20 under GTK2 Adwaita 3.20 on GTK2 uses the pixmap engine to set a background image on all states of all GtkEntries. Earlier versions did the same but with a transparent background, thus not hiding our background color. Fixes #1135, fixes #1101. --- data/geany.gtkrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/geany.gtkrc b/data/geany.gtkrc index 8f5cd3b7..8e1c0226 100644 --- a/data/geany.gtkrc +++ b/data/geany.gtkrc @@ -20,6 +20,15 @@ widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace" style "geany-search-entry-no-match-style" { base[NORMAL] = "#ffff66666666" text[NORMAL] = "#ffffffffffff" + # try and remove the entry background image on pixmap engine so that our + # background color is visible, and we don't end up with white text on white + # background (workaround for Adwaita 3.20). + engine "pixmap" { + image { + function = FLAT_BOX + detail = "entry_bg" + } + } } widget "*.geany-search-entry-no-match" style "geany-search-entry-no-match-style"