projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fc092d
)
[elm_genlist.c] fix selected item count
author
Seunggyun Kim
<sgyun.kim@samsung.com>
Tue, 25 Jan 2011 03:18:48 +0000
(12:18 +0900)
committer
Seunggyun Kim
<sgyun.kim@samsung.com>
Tue, 25 Jan 2011 03:18:48 +0000
(12:18 +0900)
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
6c3d56e
..
23f1472
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-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);
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)
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));
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)
{
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;
}
return list;
}