[genlist] delete and create last selected item's childs
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Fri, 11 Nov 2011 09:39:42 +0000 (18:39 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 16 Nov 2011 04:04:14 +0000 (13:04 +0900)
Change-Id: I311e4492262a11e6fd4de7d7212ed24b7d1dabb4

src/lib/elm_genlist.c

index 09e83c4..d1a3ed6 100644 (file)
@@ -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)