]> Pileus Git - ~andy/gtk/commitdiff
iconview: Set background on the widget's window
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 12 Jan 2012 02:02:55 +0000 (03:02 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 24 Feb 2012 03:28:32 +0000 (22:28 -0500)
The widget window is usually covered by the bin_window.
Its background color will become relevant when we introduce
kinetic scrolling with overshooting.

gtk/gtkiconview.c

index 49ac4a1eb9ed1eec8b524ced821718c871564d4d..101403a1ecb02c2640faa63d19736e0b240b83e2 100644 (file)
@@ -1302,6 +1302,7 @@ gtk_icon_view_realize (GtkWidget *widget)
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_VIEW);
   gtk_style_context_set_background (context, icon_view->priv->bin_window);
+  gtk_style_context_set_background (context, window);
   gtk_style_context_restore (context);
 
   gdk_window_show (icon_view->priv->bin_window);