[gtk+/rendering-cleanup: 20/31] gtk: Remove calls that try to set GDK_NO_BG on their windows
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 20/31] gtk: Remove calls that try to set GDK_NO_BG on their windows
- Date: Mon, 16 Aug 2010 12:28:28 +0000 (UTC)
commit 31af0e8f5f60ab9016946bc14ba775333b90ed88
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 15 13:54:05 2010 +0200
gtk: Remove calls that try to set GDK_NO_BG on their windows
These calls aren't necessary anymore.
gtk/gtklayout.c | 1 -
gtk/gtktextview.c | 2 --
gtk/gtktreeview.c | 3 ---
gtk/gtkviewport.c | 2 --
gtk/gtkwidget.c | 7 -------
5 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index fb87768..338561f 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -880,7 +880,6 @@ gtk_layout_realize (GtkWidget *widget)
widget->window = gdk_window_new (gtk_widget_get_parent_window (widget),
&attributes, attributes_mask);
- gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
gdk_window_set_user_data (widget->window, widget);
attributes.x = - priv->hadjustment->value,
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index e471b65..1446473 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8401,8 +8401,6 @@ text_window_realize (GtkTextWindow *win,
&attributes,
attributes_mask);
- gdk_window_set_back_pixmap (win->window, NULL, FALSE);
-
gdk_window_show (win->window);
gdk_window_set_user_data (win->window, win->widget);
gdk_window_lower (win->window);
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 96f7da3..efb1ac1 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -1845,7 +1845,6 @@ gtk_tree_view_realize (GtkWidget *widget)
/* Add them all up. */
widget->style = gtk_style_attach (widget->style, widget->window);
- gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
gdk_window_set_background (tree_view->priv->bin_window, &widget->style->base[widget->state]);
gtk_style_set_background (widget->style, tree_view->priv->header_window, GTK_STATE_NORMAL);
@@ -8066,7 +8065,6 @@ gtk_tree_view_style_set (GtkWidget *widget,
if (gtk_widget_get_realized (widget))
{
- gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
gdk_window_set_background (tree_view->priv->bin_window, &widget->style->base[widget->state]);
gtk_style_set_background (widget->style, tree_view->priv->header_window, GTK_STATE_NORMAL);
@@ -15122,7 +15120,6 @@ gtk_tree_view_state_changed (GtkWidget *widget,
if (gtk_widget_get_realized (widget))
{
- gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
gdk_window_set_background (tree_view->priv->bin_window, &widget->style->base[widget->state]);
}
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 71fd7b1..1d0ade0 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -710,8 +710,6 @@ gtk_viewport_realize (GtkWidget *widget)
priv->view_window = gdk_window_new (widget->window, &attributes, attributes_mask);
gdk_window_set_user_data (priv->view_window, viewport);
- gdk_window_set_back_pixmap (priv->view_window, NULL, FALSE);
-
attributes.x = - hadjustment->value;
attributes.y = - vadjustment->value;
attributes.width = hadjustment->upper;
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index ad214bf..9896279 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6128,13 +6128,6 @@ gtk_widget_set_mapped (GtkWidget *widget,
* is then entirely responsible for drawing the widget background.
*
* Note that the background is still drawn when the widget is mapped.
- * If this is not suitable (e.g. because you want to make a transparent
- * window using an RGBA visual), you can work around this by doing:
- * |[
- * gtk_widget_realize (window);
- * gdk_window_set_back_pixmap (window->window, NULL, FALSE);
- * gtk_widget_show (window);
- * ]|
**/
void
gtk_widget_set_app_paintable (GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]