mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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)
|
||||
{
|
||||
const GValue *initial, *final;
|
||||
|
||||
initial = clutter_interval_peek_initial_value (interval);
|
||||
final = clutter_interval_peek_final_value (interval);
|
||||
|
||||
apply = clutter_animatable_animate_property (animatable, animation,
|
||||
p_name,
|
||||
initial, final,
|
||||
alpha_value,
|
||||
&value);
|
||||
apply = clutter_animatable_interpolate_value (animatable, p_name,
|
||||
interval,
|
||||
alpha_value,
|
||||
&value);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user