GNOME Bugzilla – Bug 685712
Setting background on GtkEntry does not work
Last modified: 2013-02-25 18:06:50 UTC
Geany has these lines (https://github.com/geany/geany/blob/master/src/ui_utils.c#L956): gtk_widget_modify_base(widget, GTK_STATE_NORMAL, success ? NULL : &red); gtk_widget_modify_text(widget, GTK_STATE_NORMAL, success ? NULL : &white); If success is true, this should set entry text to be white-on-red. This has been working with previous versions of Adwaita, but with 3.6 it makes the text white-on-white instead. I use gnome-themes-standard 3.6.0.2, gtk2 2.24.13 and geany 1.22 from Debian unstable/experimental. Originally reported at https://sourceforge.net/tracker/?func=detail&atid=787791&aid=3575449&group_id=153444.
*** Bug 692474 has been marked as a duplicate of this bug. ***
Created attachment 234442 [details] [review] gtk2: make it possible to override GtkEntry's backgrounds Some GTK2 applications like to override GtkEntry's background with their own color for e.g. showing an error state. Since we currently draw an asset for the entry's background, this doesn't work. To support this use case, always use the background color from the style with no overrides, and put an overlay on top of it to get the same gradient we used to get. In addition, entry borders cannot be transparent anymore now, so we have to provide two versions - a normal one and one that works on notebooks, to avoid the base shining through the corners.
This depends on the GTK2 patch in bug 692554
Fixed now in master. Will backport to a final 3.6 release once the new GTK2 is out.
Thanks Cosimo!
Created attachment 237340 [details] Screenshot of Geany in GNOME 3.8 Finally the new Gtk2 and gnome-themes-standard arrived in Debian experimental, so I am able to test it. Now setting background works, but there is still a white border, see the screenshot attached.
Thanks for the feedback. That piece of border was harder to get rid of, but I now pushed an additional fix that does so to git master.