[gtk+/wip/csd: 427/429] window: Don't draw the background for the window



commit 9ee7b3604bcbe5d9a42a3af34409d4ac4d740ea4
Author: Rob Bradford <rob linux intel com>
Date:   Fri Jul 27 12:22:01 2012 +0100

    window: Don't draw the background for the window

 gtk/gtkwindow.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 73616ad..f1ff2ab 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5331,8 +5331,6 @@ gtk_window_realize (GtkWidget *widget)
       gtk_widget_set_window (widget, gdk_window);
       gdk_window_set_user_data (gdk_window, widget);
 
-      gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
-
       gdk_window_enable_synchronized_configure (gdk_window);
       return;
     }
@@ -5415,10 +5413,6 @@ gtk_window_realize (GtkWidget *widget)
 
   gdk_window_set_user_data (gdk_window, window);
 
-  context = gtk_widget_get_style_context (widget);
-  gtk_style_context_set_background (context, gdk_window);
-
-
   if (priv->transient_parent &&
       gtk_widget_get_realized (GTK_WIDGET (priv->transient_parent)))
     gdk_window_set_transient_for (gdk_window,
@@ -7958,7 +7952,6 @@ gtk_window_draw (GtkWidget *widget,
 	{
 	  gtk_style_context_add_class (context, "window-border");
 	  gtk_widget_get_allocation (widget, &allocation);
-
 	  gtk_render_background (context, cr,
 				 priv->window_border.left,
 				 priv->window_border.top,
@@ -7968,7 +7961,6 @@ gtk_window_draw (GtkWidget *widget,
 				 allocation.height -
 				 priv->window_border.top -
 				 priv->window_border.bottom);
-
 	  gtk_render_frame (context, cr,
 			    0, 0, allocation.width, allocation.height);
 	}



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