actor: Make paint_node() and ::paint mutually exclusive
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 5 Mar 2012 18:32:16 +0000 (18:32 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 16 Mar 2012 12:33:37 +0000 (12:33 +0000)
commite54ee64380fa186b59538327c49dbcf6f7efd7a8
tree5729304903e97f9a8cf15755d9a03bdcd9bb25bf
parenta58be8aad15b0248578de11405832b23332a7d99
actor: Make paint_node() and ::paint mutually exclusive

The ::paint signal is the old way to paint an actor; the paint_node()
virtual function is the new way. It's still not possible to traverse the
whole scene graph and build a render tree of PaintNode instances, but
with this change we simultaneously cut out the ::paint signal emission
from the critical path for actors that are using the new PaintNode-based
API, and we retain backward compatibility in the interim period between
1.10 and 2.0.
clutter/clutter-actor.c