clutter-animation: Fix for using fixed:: from clutter_actor_animatev
authorNeil Roberts <neil@linux.intel.com>
Fri, 18 Jun 2010 10:12:51 +0000 (11:12 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 23 Jun 2010 14:55:46 +0000 (15:55 +0100)
When using clutter_actor_animatev it would set a boolean whenever a
property begins with "fixed::". However it would never clear the
variable so it would end up marking all subsequent properties as
fixed.

http://bugzilla.openedhand.com/show_bug.cgi?id=2180

http://bugzilla.clutter-project.org/show_bug.cgi?id=2149

clutter/clutter-animation.c

index 41b02de..270d13f 100644 (file)
@@ -1792,7 +1792,6 @@ clutter_animation_setupv (ClutterAnimation    *animation,
   ClutterAnimationPrivate *priv = animation->priv;
   ClutterAnimatable *animatable = NULL;
   GObjectClass *klass = NULL;
-  gboolean is_fixed = FALSE;
   gint i;
 
   if (CLUTTER_IS_ANIMATABLE (priv->object))
@@ -1804,6 +1803,7 @@ clutter_animation_setupv (ClutterAnimation    *animation,
     {
       const gchar *property_name = properties[i];
       GParamSpec *pspec;
+      gboolean is_fixed = FALSE;
 
       if (g_str_has_prefix (property_name, "fixed::"))
         {