derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=834366c806d2920de035fa57729a38b093063f32

commit 834366c806d2920de035fa57729a38b093063f32
Author: Derek Foreman <[email protected]>
Date:   Tue Sep 18 09:42:46 2018 -0500

    efl_ui_flip: Convert to new animators
    
    Summary:
    Use more efficient animator mechanism.
    Depends on D7042
    
    Reviewers: devilhorns
    
    Reviewed By: devilhorns
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D7043
---
 src/lib/elementary/efl_ui_flip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elementary/efl_ui_flip.c b/src/lib/elementary/efl_ui_flip.c
index 9652389235..8149913cf5 100644
--- a/src/lib/elementary/efl_ui_flip.c
+++ b/src/lib/elementary/efl_ui_flip.c
@@ -1636,7 +1636,7 @@ _up_cb(void *data,
    else sd->next_state = !sd->state;
    tm *= 1.0; // FIXME: config for anim time
    ecore_animator_del(sd->animator);
-   sd->animator = ecore_animator_timeline_add(tm, _event_anim, sd);
+   sd->animator = ecore_evas_animator_timeline_add(fl, tm, _event_anim, sd);
    sd->len = tm;
    sd->start = ecore_loop_time_get();
    sd->manual = EINA_TRUE;
@@ -1897,7 +1897,7 @@ _internal_elm_flip_go_to(Evas_Object *obj,
                 Eina_Bool front,
                 Elm_Flip_Mode mode)
 {
-   if (!sd->animator) sd->animator = ecore_animator_add(_animate, obj);
+   if (!sd->animator) sd->animator = ecore_evas_animator_add(obj, _animate, 
obj);
 
    sd->mode = mode;
    sd->start = ecore_loop_time_get();

-- 


Reply via email to