]> Pileus Git - ~andy/gtk/commit
icon-view: add back gtk_style_context_set_background()
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Feb 2013 09:30:57 +0000 (10:30 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Feb 2013 10:27:14 +0000 (11:27 +0100)
commitc4183405fe5bebc21db8f9f089c7d70848570279
treea5d0c21c4f696a9e3a2ccb1bd54ab0878429f7fd
parent843e5f9cb304feeb1c8e3345729ed0ee1297c96c
icon-view: add back gtk_style_context_set_background()

Commit da09447914c0919362533182261a2c862ac8de81 removed the call to
gtk_style_context_set_background() in favour of always rendering it with
gtk_render_background() during the draw vfunc.
This has the side effect of making the backing window always
transparent, which blocks GTK from applying some optimizations during
the paint cycle. The result is that, especially in clutter-gtk
applications, scrolling performance gets really bad.

This commit partially reverts da09447914c0919362533182261a2c862ac8de81
and changes the code so that both gtk_style_context_set_background() and
gtk_render_background() are called.
gtk/gtkiconview.c