[gtk+/wip/csd: 122/134] 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: 122/134] window: Don't draw the background for the window
- Date: Thu, 7 Feb 2013 13:24:24 +0000 (UTC)
commit da4e4ae355b0f125a1279c4c398a6e97c0484c0d
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 e2e94a5..e6ba977 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5288,8 +5288,6 @@ gtk_window_realize (GtkWidget *widget)
gtk_widget_set_window (widget, gdk_window);
gtk_widget_register_window (widget, gdk_window);
- gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
-
gdk_window_enable_synchronized_configure (gdk_window);
return;
}
@@ -5369,10 +5367,6 @@ gtk_window_realize (GtkWidget *widget)
gtk_widget_register_window (widget, gdk_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,
@@ -7912,7 +7906,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,
@@ -7922,7 +7915,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]