widget: don't call gtk_style_context_set_background()
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Jul 2015 20:05:45 +0000 (13:05 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Jul 2015 23:09:23 +0000 (16:09 -0700)
We don't need to do this here anymore, since widgets typically render
their backgrounds now.

gtk/gtkwidget.c

index 7a3ee28ba23e6439515f2315ab4a6c05c5fd4120..9360f80ff19007def590193f65f3dac18ef2c34a 100644 (file)
@@ -8247,12 +8247,6 @@ gtk_widget_real_style_updated (GtkWidget *widget)
     {
       const GtkBitmask *changes = _gtk_style_context_get_changes (widget->priv->context);
 
-      if (gtk_widget_get_realized (widget) &&
-          gtk_widget_get_has_window (widget) &&
-          !gtk_widget_get_app_paintable (widget))
-        gtk_style_context_set_background (widget->priv->context,
-                                          widget->priv->window);
-
       if (widget->priv->anchored)
         {
           static GtkBitmask *affects_size = NULL;