[gtk+] treeview: Set background on the widget's window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Set background on the widget's window
- Date: Fri, 24 Feb 2012 03:29:25 +0000 (UTC)
commit 3fb69a0cae42974fdcb52e0b1a94e4329734b09a
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jan 12 03:00:45 2012 +0100
treeview: Set background on the widget's window
The widget window is usually covered by the bin_window.
Its background color will become relevant when we introduce
kinetic scrolling with overshooting.
gtk/gtktreeview.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index c3138a6..1d12d94 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]