genlist: Return the correct pointer for object item.

No backport needed.
This commit is contained in:
Daniel Juyung Seo 2014-12-26 14:36:36 +09:00
parent 4e6ce7da7a
commit 9b038471bf
1 changed files with 4 additions and 2 deletions

View File

@ -2782,7 +2782,8 @@ _item_swap_cb(void *data, double pos)
{
elm_genlist_item_bring_in((Elm_Object_Item *)sd->reorder.it2, ELM_GENLIST_ITEM_SCROLLTO_IN);
_anim_end(sd);
evas_object_smart_callback_call(sd->obj, SIG_ITEM_REORDER_STOP, sd->reorder.it1);
evas_object_smart_callback_call(sd->obj, SIG_ITEM_REORDER_STOP,
EO_OBJ(sd->reorder.it1));
evas_object_smart_callback_call(sd->obj, SIG_MOVED, EO_OBJ(sd->reorder.it1));
sd->reorder.running = EINA_FALSE;
}
@ -2814,7 +2815,8 @@ _swap_items(Elm_Gen_Item *it1, Elm_Gen_Item *it2, Elm_Focus_Direction dir)
sd->reorder.y2 = yy2;
evas_object_raise(VIEW(it1));
evas_object_smart_callback_call(sd->obj, SIG_ITEM_REORDER_START, sd->reorder.it1);
evas_object_smart_callback_call(sd->obj, SIG_ITEM_REORDER_START,
EO_OBJ(sd->reorder.it1));
//TODO: Add elm config for time
ecore_animator_timeline_add(0.3, _item_swap_cb, sd);
}