[gtk+/wip/background-rework: 24/26] widget: don't call gtk_style_context_set_background()



commit a266198283832e539d298e60194d29fe315f0efc
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jul 1 13:05:45 2015 -0700

    widget: don't call gtk_style_context_set_background()
    
    We don't need to do this here anymore, since widgets typically render
    their backgrounds now.

 gtk/gtkwidget.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1a226aa..91ef82b 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8278,12 +8278,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]