[gtk+/wip/csd: 755/757] window: Don't draw the background for the window
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csd: 755/757] window: Don't draw the background for the window
- Date: Mon, 12 Nov 2012 16:39:43 +0000 (UTC)
commit 921d821bcd28765b915af6246051184df8e331ac
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 77a225a..4f6efca 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,
@@ -7963,7 +7957,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,
@@ -7973,7 +7966,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]