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+.
if (widget->priv->context)
{
if (gtk_widget_get_realized (widget) &&
- gtk_widget_get_has_window (widget))
+ gtk_widget_get_has_window (widget) &&
+ !gtk_widget_get_app_paintable (widget))
gtk_style_context_set_background (widget->priv->context,
widget->priv->window);
}