seoz pushed a commit to branch master.
commit dfb17e63f4ed0d5427cda4c07d7db908342d0bfd
Author: Daniel Juyung Seo <[email protected]>
Date: Sat Jul 6 13:00:39 2013 +0900
elm_genlist.c: refactoring. use correct parameters.
---
src/lib/elm_genlist.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 7bfc592..cabf852 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -3350,9 +3350,8 @@ _multi_cancel(void *data)
}
static void
-_multi_touch_gesture_eval(void *data)
+_multi_touch_gesture_eval(Elm_Gen_Item *it)
{
- Elm_Gen_Item *it = data;
Evas_Coord minw = 0, minh = 0;
Evas_Coord off_x, off_y, off_mx, off_my;
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
@@ -4099,7 +4098,7 @@ _item_mouse_up_cb(void *data,
if ((!sd->multi) && (!it->selected) && (it->highlighted))
_item_unhighlight(it);
if (sd->multi_down) return;
- _multi_touch_gesture_eval(data);
+ _multi_touch_gesture_eval(it);
return;
}
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
@@ -4120,7 +4119,7 @@ _item_mouse_up_cb(void *data,
}
if (sd->on_hold)
{
- if (sd->swipe) _swipe_do(data);
+ if (sd->swipe) _swipe_do(it);
sd->longpressed = EINA_FALSE;
sd->on_hold = EINA_FALSE;
return;
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev