]> Pileus Git - ~andy/gtk/commit
Add opacity_group hack
authorAlexander Larsson <alexl@redhat.com>
Mon, 11 Feb 2013 19:33:52 +0000 (20:33 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 12 Feb 2013 16:02:53 +0000 (17:02 +0100)
commit8b9254c8a79440860ee3e7c4e257fa6de6da1f95
treef4e88b159208bef353fef55289adcece2ffde595
parentbfd7137ffbcbd8caa531d7a47d799fefb6605a5a
Add opacity_group hack

This adds a way to get the gtk_widget_set_opacity liike behaviour
of retargeting GdkWindows and exposing every child in ::draw, without
actually having an alpha. This is needed if you're doing more complex things
such as cross fading of widgets.

We do this as a hack by using opacity values that round to 255 yet not
really 1.0 in order to avoid having some magical API call for this
mainly internal call.

https://bugzilla.gnome.org/show_bug.cgi?id=687842
gtk/gtkwidget.c