[gtk+/rendering-cleanup: 47/76] 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/76] Use gdk_window_set_background_pattern() to set parent-relative bakground
- Date: Thu, 26 Aug 2010 12:06:21 +0000 (UTC)
commit 84c009a97d3342042aed1c749d296a2ed83c04a3
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/gtkitem.c | 2 +-
gtk/gtkmisc.c | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index ead564c..165d2dd 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -479,7 +479,6 @@ gtk_handle_box_realize (GtkWidget *widget)
gtk_style_set_background (widget->style, widget->window, gtk_widget_get_state (widget));
gtk_style_set_background (widget->style, priv->bin_window, gtk_widget_get_state (widget));
gtk_style_set_background (widget->style, priv->float_window, gtk_widget_get_state (widget));
- gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
}
static void
diff --git a/gtk/gtkitem.c b/gtk/gtkitem.c
index 97d45f9..9f15832 100644
--- a/gtk/gtkitem.c
+++ b/gtk/gtkitem.c
@@ -155,7 +155,7 @@ gtk_item_realize (GtkWidget *widget)
gtk_widget_style_attach (widget);
gtk_style_set_background (gtk_widget_get_style (widget), window, GTK_STATE_NORMAL);
- gdk_window_set_back_pixmap (window, NULL, TRUE);
+ gdk_window_set_background_pattern (window, NULL);
}
static gint
diff --git a/gtk/gtkmisc.c b/gtk/gtkmisc.c
index fc711aa..ead3ff0 100644
--- a/gtk/gtkmisc.c
+++ b/gtk/gtkmisc.c
@@ -362,6 +362,6 @@ gtk_misc_realize (GtkWidget *widget)
gdk_window_set_user_data (widget->window, widget);
widget->style = gtk_style_attach (widget->style, widget->window);
- gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
+ gdk_window_set_background_pattern (widget->window, NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]