seoz pushed a commit to branch master.
commit c7650992603eaf35e2e6ece30d6f5f5347d376e1
Author: Daniel Juyung Seo <[email protected]>
Date: Wed Mar 27 02:46:35 2013 +0900
elm_genlist.c: added {} pair for if statement + loop combination.
Special thanks to Tasn.
---
src/lib/elm_genlist.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 1cfb3ef..3672714 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3984,8 +3984,10 @@ _access_activate_cb(void *data __UNUSED__,
Elm_Gen_Item *it2;
EINA_LIST_FOREACH_SAFE(sd->selected, l, l_next, it2)
- if (it2 != it)
- _item_unselect(it2);
+ {
+ if (it2 != it)
+ _item_unselect(it2);
+ }
}
_item_highlight(it);
it->sel_cb(it);
@@ -4144,8 +4146,10 @@ _item_mouse_up_cb(void *data,
Elm_Gen_Item *it2;
EINA_LIST_FOREACH_SAFE(sd->selected, l, l_next, it2)
- if (it2 != it)
- _item_unselect(it2);
+ {
+ if (it2 != it)
+ _item_unselect(it2);
+ }
}
_item_highlight(it);
it->sel_cb(it);
--
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d