jaehyun pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=119c41d7f2f13da0e27ee0d4d879301aa36f90c3

commit 119c41d7f2f13da0e27ee0d4d879301aa36f90c3
Author: Jaehyun Cho <[email protected]>
Date:   Wed Jan 17 18:43:35 2018 +0900

    elm_test: Fix to call efl_add with parent
    
    To trace back to the main loop, call efl_add with parent.
    (See https://phab.enlightenment.org/T6573)
---
 src/bin/elementary/test_efl_anim_interpolator.c | 20 ++++++++++----------
 src/bin/elementary/test_efl_anim_scale.c        |  2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/bin/elementary/test_efl_anim_interpolator.c 
b/src/bin/elementary/test_efl_anim_interpolator.c
index 097d030b98..376e726fd1 100644
--- a/src/bin/elementary/test_efl_anim_interpolator.c
+++ b/src/bin/elementary/test_efl_anim_interpolator.c
@@ -22,42 +22,42 @@ typedef struct _App_Data
 } App_Data;
 
 static Efl_Interpolator *
-_interpolator_create(int index)
+_interpolator_create(int index, Evas_Object *win)
 {
    Efl_Interpolator *interp = NULL;
 
    if (index == 0)
      {
-        interp = efl_add(EFL_INTERPOLATOR_LINEAR_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_LINEAR_CLASS, win);
      }
    else if (index == 1)
      {
-        interp = efl_add(EFL_INTERPOLATOR_SINUSOIDAL_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_SINUSOIDAL_CLASS, win);
         efl_interpolator_sinusoidal_factor_set(interp, 1.0);
      }
    else if (index == 2)
      {
-        interp = efl_add(EFL_INTERPOLATOR_DECELERATE_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_DECELERATE_CLASS, win);
         efl_interpolator_decelerate_factor_set(interp, 1.0);
      }
    else if (index == 3)
      {
-        interp = efl_add(EFL_INTERPOLATOR_ACCELERATE_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_ACCELERATE_CLASS, win);
         efl_interpolator_accelerate_factor_set(interp, 1.0);
      }
    else if (index == 4)
      {
-        interp = efl_add(EFL_INTERPOLATOR_DIVISOR_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_DIVISOR_CLASS, win);
         efl_interpolator_divisor_factors_set(interp, 1.0, 1.0);
      }
    else if (index == 5)
      {
-        interp = efl_add(EFL_INTERPOLATOR_BOUNCE_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_BOUNCE_CLASS, win);
         efl_interpolator_bounce_factors_set(interp, 1.0, 1.0);
      }
    else if (index == 6)
      {
-        interp = efl_add(EFL_INTERPOLATOR_SPRING_CLASS, NULL);
+        interp = efl_add(EFL_INTERPOLATOR_SPRING_CLASS, win);
         efl_interpolator_spring_factors_set(interp, 1.0, 1.0);
      }
 
@@ -189,12 +189,12 @@ test_efl_anim_interpolator(void *data EINA_UNUSED, 
Evas_Object *obj EINA_UNUSED,
         efl_animation_duration_set(anim, 2.0);
         efl_animation_final_state_keep_set(anim, EINA_FALSE);
 
-        Efl_Interpolator *interp = _interpolator_create(i);
+        Efl_Interpolator *interp = _interpolator_create(i, win);
         efl_animation_interpolator_set(anim, interp);
         ad->anim[i] = anim;
 
         //Create Animation Object from Animation
-        Efl_Animation_Player *anim_obj = efl_add(EFL_ANIMATION_PLAYER_CLASS, 
NULL,
+        Efl_Animation_Player *anim_obj = efl_add(EFL_ANIMATION_PLAYER_CLASS, 
win,
                                                  
efl_animation_player_animation_set(efl_added, anim),
                                                  
efl_animation_player_target_set(efl_added, btn));
         ad->anim_obj[i] = anim_obj;
diff --git a/src/bin/elementary/test_efl_anim_scale.c 
b/src/bin/elementary/test_efl_anim_scale.c
index 41d1c88b60..9cc0f768e7 100644
--- a/src/bin/elementary/test_efl_anim_scale.c
+++ b/src/bin/elementary/test_efl_anim_scale.c
@@ -97,7 +97,7 @@ test_efl_anim_scale(void *data EINA_UNUSED, Evas_Object *obj 
EINA_UNUSED, void *
    //Initialize App Data
    ad->scale_double_anim = scale_double_anim;
    ad->scale_half_anim = scale_half_anim;
-   ad->anim_obj = efl_add(EFL_ANIMATION_PLAYER_CLASS, NULL,
+   ad->anim_obj = efl_add(EFL_ANIMATION_PLAYER_CLASS, win,
                           efl_animation_player_target_set(efl_added, btn));
 
    //Register callback called when animation starts

-- 


Reply via email to