[gtk+/rendering-cleanup: 47/141] Use gdk_window_set_background_pattern() to set parent-relative bakground
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 47/141] Use gdk_window_set_background_pattern() to set parent-relative bakground
- Date: Thu, 9 Sep 2010 16:27:16 +0000 (UTC)
commit a4d52ccdcb63dd8367d145d2d389285387830c3e
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 15 14:37:58 2010 +0200
Use gdk_window_set_background_pattern() to set parent-relative bakground
gtk/gtkhandlebox.c | 1 -
gtk/gtkmisc.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index 423a4f2..3fe3d23 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -483,7 +483,6 @@ gtk_handle_box_realize (GtkWidget *widget)
gtk_style_set_background (style, window, state);
gtk_style_set_background (style, priv->bin_window, state);
gtk_style_set_background (style, priv->float_window, state);
- gdk_window_set_back_pixmap (window, NULL, TRUE);
}
static void
diff --git a/gtk/gtkmisc.c b/gtk/gtkmisc.c
index 5b620ba..ad96094 100644
--- a/gtk/gtkmisc.c
+++ b/gtk/gtkmisc.c
@@ -359,8 +359,8 @@ gtk_misc_realize (GtkWidget *widget)
window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask);
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, widget);
+ gdk_window_set_background_pattern (window, NULL);
gtk_widget_style_attach (widget);
- gdk_window_set_back_pixmap (window, NULL, TRUE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]