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:
0ef23b7
)
elementary: use FOREACH_SAFE we remove an element in the loop
author
yoz
<yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Apr 2012 14:31:51 +0000
(14:31 +0000)
committer
yoz
<yoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Apr 2012 14:31:51 +0000
(14:31 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70364
7cbeb6ba
-43b4-40fd-8cce-
4c39aea84d33
src/lib/elm_genlist.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_genlist.c
b/src/lib/elm_genlist.c
index
e0531c3
..
c8e5c69
100644
(file)
--- a/
src/lib/elm_genlist.c
+++ b/
src/lib/elm_genlist.c
@@
-4821,7
+4821,7
@@
_elm_genlist_expanded_next_item_get(Elm_Gen_Item *it)
static void
_elm_genlist_move_items_set(Elm_Gen_Item *it)
{
- Eina_List *l;
+ Eina_List *l
, *ll
;
Elm_Gen_Item *it2 = NULL;
Evas_Coord ox, oy, ow, oh, dh = 0;
@@
-4830,7
+4830,7
@@
_elm_genlist_move_items_set(Elm_Gen_Item *it)
if (it->item->expanded)
{
it->wd->move_items = elm_genlist_realized_items_get(it->wd->obj);
- EINA_LIST_FOREACH
(it->wd->move_items,
l, it2)
+ EINA_LIST_FOREACH
_SAFE(it->wd->move_items, l, l
l, it2)
{
if (it2 == it->wd->expanded_next_item) break;
it->wd->move_items = eina_list_remove(it->wd->move_items, it2);