actor: Move the ShaderData out of the private data
authorEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 18 Feb 2011 11:43:27 +0000 (11:43 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Fri, 18 Feb 2011 11:43:27 +0000 (11:43 +0000)
commitfc89513295d467abf8c5d3ed8c799e761a072786
tree845b008be8d519a6fbdc95e1c2ab388130f21b8a
parent9ea2567a2fbf44a05d000d07c031b593109c739b
actor: Move the ShaderData out of the private data

Let's try and start reducing the size of ClutterActorPrivate by moving
some optional, out-of-band data from it to GObject data.

The ShaderData structure is a prime candidate for this migration: it
does not need to be inspected by the actor, and its relationship with an
actor is transient and optional.

By attaching it to the actor's instance through g_object_set_data() we
neatly tie its lifetime to the instance, and we don't have to care
cleaning it up in the finalize()/dispose() implementation of
ClutterActor itself.
clutter/clutter-actor.c
tests/interactive/test-shader.c