]> Pileus Git - ~andy/gtk/commit
widget: don't call gtk_style_context_set_background if app_paintable
authorBenjamin Otte <otte@redhat.com>
Mon, 18 Jun 2012 14:28:52 +0000 (10:28 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 18 Jun 2012 14:33:42 +0000 (10:33 -0400)
commit9b47bc5c95cd2aa18abcb476febe2fc39fbc30c3
treef1d3c82d5d833120a12db3c604169dbceea23835
parent6d4058e9ac4f0d54a2e7e3f4edb33f073c99c51a
widget: don't call gtk_style_context_set_background if app_paintable

When a widget is app_paintable, its background should not be drawn by
the theme, thus we should not try to override its background again when
style-updated is fired.
This is a bit of a hack, but it fixes gray surfaces observed for DnD
windows with recent GTK+.
gtk/gtkwidget.c