g_value_unset (&initial);
g_value_unset (&final);
- res = clutter_property_transition_new (CLUTTER_ANIMATABLE (actor),
- pspec->name);
+ res = clutter_property_transition_new (pspec->name);
clutter_transition_set_interval (res, interval);
clutter_transition_set_remove_on_complete (res, TRUE);
return;
}
+ clutter_transition_set_animatable (transition, CLUTTER_ANIMATABLE (self));
+
timeline = CLUTTER_TIMELINE (transition);
clutter_timeline_set_delay (timeline, info->cur_state->easing_delay);
GValue value = G_VALUE_INIT;
gboolean res;
+ /* if we have a GParamSpec we also have an animatable instance */
if (priv->pspec == NULL)
return;
/**
* clutter_property_transition_new:
- * @animatable: (allow-none): a #ClutterAnimatable, or %NULL
* @property_name: (allow-none): a property of @animatable, or %NULL
*
- * Creates a new #ClutterPropertyTransition for @animatable.
+ * Creates a new #ClutterPropertyTransition.
*
* Return value: (transfer full): the newly created #ClutterPropertyTransition.
* Use g_object_unref() when done
* Since: 1.10
*/
ClutterTransition *
-clutter_property_transition_new (ClutterAnimatable *animatable,
- const char *property_name)
+clutter_property_transition_new (const char *property_name)
{
return g_object_new (CLUTTER_TYPE_PROPERTY_TRANSITION,
- "animatable", animatable,
"property-name", property_name,
NULL);
}
GType clutter_property_transition_get_type (void) G_GNUC_CONST;
CLUTTER_AVAILABLE_IN_1_10
-ClutterTransition * clutter_property_transition_new (ClutterAnimatable *animatable,
- const char *property_name);
+ClutterTransition * clutter_property_transition_new (const char *property_name);
CLUTTER_AVAILABLE_IN_1_10
void clutter_property_transition_set_property_name (ClutterPropertyTransition *transition,
const char *property_name);