summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2012-01-12 03:00:45 +0100
committerCarlos Garnacho <carlosg@gnome.org>2012-02-18 17:48:53 +0100
commit02eeed70bd8cb8f57e5fbb16b8a27f413c12e0a4 (patch)
tree43c1542ff69e1689917b0c19149b6d8b708ffbce
parent849661a5738503f4cf5af2b9d607f4b43f0d64bc (diff)
downloadgtk+-02eeed70bd8cb8f57e5fbb16b8a27f413c12e0a4.tar.gz
treeview: Set background on the widget's window
The widget window is usually covered by the bin_window, this is just necessary so the parent scrolled window picks the right color for drawing the overshoot area.
-rw-r--r--gtk/gtktreeview.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 43add5427c..0be6dbe000 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2193,6 +2193,7 @@ gtk_tree_view_ensure_background (GtkTreeView *tree_view)
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW);
gtk_style_context_set_background (context, tree_view->priv->bin_window);
+ gtk_style_context_set_background (context, gtk_widget_get_window (GTK_WIDGET (tree_view)));
gtk_style_context_restore (context);
gtk_style_context_set_background (context, tree_view->priv->header_window);