From: Hyoyoung Chang Date: Fri, 11 Nov 2011 09:39:42 +0000 (+0900) Subject: [genlist] delete and create last selected item's childs X-Git-Tag: REL_F_I9500_20111118_1~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=861ff38a4e32af1f871860b88aa3086d22c7c5b2;p=framework%2Fuifw%2Felementary.git [genlist] delete and create last selected item's childs Change-Id: I311e4492262a11e6fd4de7d7212ed24b7d1dabb4 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 09e83c4..d1a3ed6 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -907,7 +907,14 @@ call: if (it->wd->last_selected_item && (it != it->wd->last_selected_item)) { EINA_LIST_FOREACH(it->wd->last_selected_item->icon_objs, l, obj) - elm_widget_focused_object_clear(obj); + { + //elm_widget_focused_object_clear(obj); + // FIXME:it prevents to focusable items can get focus + // if another genlist item is selected. + // when genlist items can receive focus, it should be removed + elm_genlist_item_fields_update(it->wd->last_selected_item, + "*", ELM_GENLIST_ITEM_FIELD_ICON); + } } if (it->func.func) it->func.func((void *)it->func.data, parent, it); if (!it->delete_me)