static GParamSpec *
clutter_actor_find_property (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name)
{
ClutterActorMeta *meta = NULL;
static void
clutter_actor_get_initial_state (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
GValue *initial)
{
static void
clutter_actor_set_final_state (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
const GValue *final)
{
/**
* clutter_animatable_find_property:
* @animatable: a #ClutterAnimatable
- * @animation: a #ClutterAnimation
* @property_name: the name of the animatable property to find
*
* Finds the #GParamSpec for @property_name
*/
GParamSpec *
clutter_animatable_find_property (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name)
{
ClutterAnimatableIface *iface;
g_return_val_if_fail (CLUTTER_IS_ANIMATABLE (animatable), NULL);
- g_return_val_if_fail (CLUTTER_IS_ANIMATION (animation), NULL);
g_return_val_if_fail (property_name != NULL, NULL);
CLUTTER_NOTE (ANIMATION, "Looking for property '%s'", property_name);
iface = CLUTTER_ANIMATABLE_GET_IFACE (animatable);
if (iface->find_property != NULL)
- return iface->find_property (animatable, animation, property_name);
+ return iface->find_property (animatable, property_name);
return g_object_class_find_property (G_OBJECT_GET_CLASS (animatable),
property_name);
/**
* clutter_animatable_get_initial_state:
* @animatable: a #ClutterAnimatable
- * @animation: a #ClutterAnimation
* @property_name: the name of the animatable property to retrieve
* @value: a #GValue initialized to the type of the property to retrieve
*
*/
void
clutter_animatable_get_initial_state (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
GValue *value)
{
ClutterAnimatableIface *iface;
g_return_if_fail (CLUTTER_IS_ANIMATABLE (animatable));
- g_return_if_fail (CLUTTER_IS_ANIMATION (animation));
g_return_if_fail (property_name != NULL);
CLUTTER_NOTE (ANIMATION, "Getting initial state of '%s'", property_name);
iface = CLUTTER_ANIMATABLE_GET_IFACE (animatable);
if (iface->get_initial_state != NULL)
- iface->get_initial_state (animatable, animation, property_name, value);
+ iface->get_initial_state (animatable, property_name, value);
else
g_object_get_property (G_OBJECT (animatable), property_name, value);
}
/**
* clutter_animatable_set_final_state:
* @animatable: a #ClutterAnimatable
- * @animation: a #ClutterAnimation
* @property_name: the name of the animatable property to set
* @value: the value of the animatable property to set
*
*/
void
clutter_animatable_set_final_state (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
const GValue *value)
{
ClutterAnimatableIface *iface;
g_return_if_fail (CLUTTER_IS_ANIMATABLE (animatable));
- g_return_if_fail (CLUTTER_IS_ANIMATION (animation));
g_return_if_fail (property_name != NULL);
CLUTTER_NOTE (ANIMATION, "Setting state of property '%s'", property_name);
iface = CLUTTER_ANIMATABLE_GET_IFACE (animatable);
if (iface->set_final_state != NULL)
- iface->set_final_state (animatable, animation, property_name, value);
+ iface->set_final_state (animatable, property_name, value);
else
g_object_set_property (G_OBJECT (animatable), property_name, value);
}
gdouble progress,
GValue *value);
GParamSpec *(* find_property) (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name);
void (* get_initial_state) (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
GValue *value);
void (* set_final_state) (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
const GValue *value);
};
GValue *value);
GParamSpec *clutter_animatable_find_property (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name);
void clutter_animatable_get_initial_state (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
GValue *value);
void clutter_animatable_set_final_state (ClutterAnimatable *animatable,
- ClutterAnimation *animation,
const gchar *property_name,
const GValue *value);
p_value = clutter_interval_peek_initial_value (interval);
if (animatable != NULL)
- clutter_animatable_set_final_state (animatable, self,
- p_name,
- p_value);
+ clutter_animatable_set_final_state (animatable, p_name, p_value);
else
g_object_set_property (priv->object, p_name, p_value);
}
{
ClutterAnimatable *animatable = CLUTTER_ANIMATABLE (priv->object);
- pspec = clutter_animatable_find_property (animatable,
- animation,
- property_name);
+ pspec = clutter_animatable_find_property (animatable, property_name);
}
else
{
if (CLUTTER_IS_ANIMATABLE (priv->object))
clutter_animatable_get_initial_state (CLUTTER_ANIMATABLE (priv->object),
- animation,
property_name,
&initial);
else
{
ClutterAnimatable *animatable = CLUTTER_ANIMATABLE (priv->object);
- pspec = clutter_animatable_find_property (animatable,
- animation,
- property_name);
+ pspec = clutter_animatable_find_property (animatable, property_name);
}
else
{
if (apply)
{
if (is_animatable)
- clutter_animatable_set_final_state (animatable, animation,
- p_name,
- &value);
+ clutter_animatable_set_final_state (animatable, p_name, &value);
else
g_object_set_property (priv->object, p_name, &value);
}
if (CLUTTER_IS_ANIMATABLE (priv->object))
clutter_animatable_get_initial_state (CLUTTER_ANIMATABLE (priv->object),
- animation,
property_name,
&cur_value);
else
{
if (CLUTTER_IS_ANIMATABLE (priv->object))
clutter_animatable_set_final_state (CLUTTER_ANIMATABLE (priv->object),
- animation,
property_name,
&real_value);
else
}
if (animatable != NULL)
- pspec = clutter_animatable_find_property (animatable,
- animation,
- property_name);
+ pspec = clutter_animatable_find_property (animatable, property_name);
else
pspec = g_object_class_find_property (klass, property_name);
if (animatable != NULL)
pspec = clutter_animatable_find_property (animatable,
- animation,
property_name);
else
pspec = g_object_class_find_property (klass, property_name);