[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: Mon, 13 Sep 2010 23:48:50 +0000 (UTC)
commit e2f43303c3573664998080b020ca68d07cda8dfb
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 4fde982..572ded3 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]