[gtk+/rendering-cleanup-next: 95/199] window: Remove hack to set background



commit f76ddf30f13f2254579fee665acbdc005a019945
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 8 16:08:46 2010 +0200

    window: Remove hack to set background
    
    I can't see this having any effect in current code, but who knows...

 gtk/gtkwindow.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 8bf4bea..56518cf 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4774,9 +4774,6 @@ gtk_window_realize (GtkWidget *widget)
   if (priv->frame)
     gtk_style_set_background (style, priv->frame, GTK_STATE_NORMAL);
 
-  /* This is a bad hack to set the window background. */
-  gtk_window_paint (widget, NULL);
-  
   if (priv->transient_parent &&
       gtk_widget_get_realized (GTK_WIDGET (priv->transient_parent)))
     gdk_window_set_transient_for (gdk_window,



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