diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index d411f5b690..52cde55023 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -2180,6 +2180,21 @@ gtk_tree_view_map (GtkWidget *widget) gdk_window_show (gtk_widget_get_window (widget)); } +static void +gtk_tree_view_ensure_background (GtkTreeView *tree_view) +{ + GtkStyleContext *context; + + context = gtk_widget_get_style_context (widget); + + 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_restore (context); + + gtk_style_context_set_background (context, tree_view->priv->header_window); +} + static void gtk_tree_view_realize (GtkWidget *widget) {