[*][Genlist] Refine effect_moving_timer_cb. Recalculate pan when the timer is expired...
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 31 Oct 2011 11:18:20 +0000 (20:18 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Mon, 31 Oct 2011 11:18:20 +0000 (20:18 +0900)
src/lib/elm_genlist.c

index c5a5f00..1d6eefd 100644 (file)
@@ -5372,8 +5372,6 @@ _item_moving_effect_timer_cb(void *data)
                   it = elm_genlist_item_prev_get(it);
                }
           }
-        if (wd->calc_job) ecore_job_del(wd->calc_job);
-        wd->calc_job = ecore_job_add(_calc_job, wd);
      }
    else
      {
@@ -5431,6 +5429,7 @@ _item_moving_effect_timer_cb(void *data)
 
         evas_object_smart_callback_call(wd->pan_smart, "changed", NULL);
         evas_object_smart_callback_call(wd->obj, "effect_done", NULL);
+        evas_object_smart_changed(wd->pan_smart);
         return ECORE_CALLBACK_CANCEL;
      }
    return ECORE_CALLBACK_RENEW;