]> Pileus Git - ~andy/gtk/commit - gtk/gtkstylecontext.c
stylecontext: Fix gtk_style_context_set_background()
authorBenjamin Otte <otte@redhat.com>
Mon, 17 Dec 2012 15:42:55 +0000 (16:42 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Dec 2012 16:47:20 +0000 (17:47 +0100)
commit5e12aafacdacfd5b03f358a6cd0262d539e480af
tree11d21353db0ca49640fbe48c0d92c491ba4383a1
parent4cfd1f51c0bbe33c2b31e7f097064d8fe88c48a1
stylecontext: Fix gtk_style_context_set_background()

This function is just a sophisitcated optimization.

If we know the GDK window's background will be opaque, we mark it as
opaque. This is so GDK can do all the optimizations it does for opaque
windows and be fast.

This is mainly used when scrolling.

The previous code didn't get this right, in particular it didn't enforce
a transparent background when it knew the background was not opaque.
gtk/gtkstylecontext.c