ecore_anim: fix source_set bug.
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 14 Nov 2014 02:39:42 +0000 (11:39 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Fri, 14 Nov 2014 02:41:56 +0000 (11:41 +0900)
The source and the function should be set after _end_tick is called.

@fix

src/lib/ecore/ecore_anim.c

index 6dee5ad..e248f05 100644 (file)
@@ -587,8 +587,8 @@ ecore_animator_source_set(Ecore_Animator_Source source)
 {
    EINA_MAIN_LOOP_CHECK_RETURN;
    _ecore_lock();
-   src = source;
    _end_tick();
+   src = source;
    if (_have_animators()) _begin_tick();
    _ecore_unlock();
 }
@@ -606,9 +606,9 @@ ecore_animator_custom_source_tick_begin_callback_set(Ecore_Cb    func,
 {
    EINA_MAIN_LOOP_CHECK_RETURN;
    _ecore_lock();
+   _end_tick();
    begin_tick_cb = func;
    begin_tick_data = data;
-   _end_tick();
    if (_have_animators()) _begin_tick();
    _ecore_unlock();
 }
@@ -619,9 +619,9 @@ ecore_animator_custom_source_tick_end_callback_set(Ecore_Cb    func,
 {
    EINA_MAIN_LOOP_CHECK_RETURN;
    _ecore_lock();
+   _end_tick();
    end_tick_cb = func;
    end_tick_data = data;
-   _end_tick();
    if (_have_animators()) _begin_tick();
    _ecore_unlock();
 }