constraints: Allow Align and Bind sources to be NULL
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 17 Jun 2010 16:33:10 +0000 (17:33 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 17 Jun 2010 16:33:10 +0000 (17:33 +0100)
commita75c02a5d688a85608b628a89bdd4949e3b53faa
treeb51c7d80e39847fbc828ef2cae9e320f5a797911
parenta4dbcf0c32e8143dba4f7dbd4f1191c3225af413
constraints: Allow Align and Bind sources to be NULL

Since constructing AlignConstraint and BindConstraint instances could be
deferred (think ClutterScript) we need to make their :source properties
setters accept NULL. This does not break the constraints because they
need to handle that condition in case they actor to which they are
applied is destroyed and somebody is holding a reference on them anyway.
clutter/clutter-align-constraint.c
clutter/clutter-bind-constraint.c