animation: Use Animatable.interpolate_value()
And stop using the deprecated animate_property() method.
This commit is contained in:
parent
8b861cea8f
commit
677df44975
@ -1104,16 +1104,10 @@ on_alpha_notify (GObject *gobject,
|
|||||||
|
|
||||||
if (is_animatable)
|
if (is_animatable)
|
||||||
{
|
{
|
||||||
const GValue *initial, *final;
|
apply = clutter_animatable_interpolate_value (animatable, p_name,
|
||||||
|
interval,
|
||||||
initial = clutter_interval_peek_initial_value (interval);
|
alpha_value,
|
||||||
final = clutter_interval_peek_final_value (interval);
|
&value);
|
||||||
|
|
||||||
apply = clutter_animatable_animate_property (animatable, animation,
|
|
||||||
p_name,
|
|
||||||
initial, final,
|
|
||||||
alpha_value,
|
|
||||||
&value);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user