[elm_genlist.c] fix selected item count
authorSeunggyun Kim <sgyun.kim@samsung.com>
Tue, 25 Jan 2011 03:18:48 +0000 (12:18 +0900)
committerSeunggyun Kim <sgyun.kim@samsung.com>
Tue, 25 Jan 2011 03:18:48 +0000 (12:18 +0900)
src/lib/elm_genlist.c

index 6c3d56e..23f1472 100644 (file)
@@ -6160,13 +6160,12 @@ elm_genlist_edit_selected_items_del(Evas_Object *obj)
 
    edit_selected_list = elm_genlist_edit_selected_items_get(obj);
    cnt = eina_list_count(edit_selected_list);
-   printf("elm_genlist_edit_selected_items_del items selected counts = %d \n",  cnt);
+//   printf("elm_genlist_edit_selected_items_del items selected counts = %d \n",  cnt);
 
    EINA_LIST_FOREACH(edit_selected_list, l, it)
-        {
-         if (it->flags != ELM_GENLIST_ITEM_GROUP)
-        elm_genlist_item_del(it);
-       }
+    {
+       if (it->flags != ELM_GENLIST_ITEM_GROUP) elm_genlist_item_del(it);
+    }
    eina_list_free(edit_selected_list);
 
    evas_render(evas_object_evas_get(wd->obj));
@@ -6209,8 +6208,8 @@ elm_genlist_edit_selected_items_get(const Evas_Object *obj)
 
    EINA_INLIST_FOREACH(wd->items, it)
      {
-        if (it->edit_select_check) list = eina_list_append(list, it);
-       }
+        if (it->edit_select_check && it->flags != ELM_GENLIST_ITEM_GROUP) list = eina_list_append(list, it);
+     }
    
    return list;
 }