list: Fix wrong eo item porting.

Fix egitu crash issue :)
Special thanks to davemds for letting me know python gdb
usage.
This commit is contained in:
Daniel Juyung Seo 2014-11-24 17:38:36 +09:00
parent b91715ec3f
commit d31b51eccc
1 changed files with 2 additions and 2 deletions

View File

@ -1219,7 +1219,7 @@ _elm_list_nearest_visible_item_get(Evas_Object *obj, Elm_List_Item_Data *it)
{
while ((item_list = eina_list_next(item_list)))
{
item = eina_list_data_get(item_list);
item = eo_data_scope_get(eina_list_data_get(item_list), ELM_LIST_ITEM_CLASS);
evas_object_geometry_get(VIEW(item), &cx, &cy, &cw, &ch);
if (ELM_RECTS_INCLUDE(vx, vy, vw, vh, cx, cy, cw, ch) &&
!elm_object_item_disabled_get(EO_OBJ(item)))
@ -1230,7 +1230,7 @@ _elm_list_nearest_visible_item_get(Evas_Object *obj, Elm_List_Item_Data *it)
{
while ((item_list = eina_list_prev(item_list)))
{
item = eina_list_data_get(item_list);
item = eo_data_scope_get(eina_list_data_get(item_list), ELM_LIST_ITEM_CLASS);
evas_object_geometry_get(VIEW(item), &cx, &cy, &cw, &ch);
if (ELM_RECTS_INCLUDE(vx, vy, vw, vh, cx, cy, cw, ch) &&
!elm_object_item_disabled_get(EO_OBJ(item)))