From 06e45784832cc4ce9602de275391dc5d4122f1c7 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Wed, 14 Nov 2012 10:49:59 +0000 Subject: [PATCH] elm elm_toolbar.c: Use correct callback function. SVN revision: 79286 --- legacy/elementary/src/lib/elm_toolbar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/legacy/elementary/src/lib/elm_toolbar.c b/legacy/elementary/src/lib/elm_toolbar.c index e4b6b41364..3864ca5fa4 100644 --- a/legacy/elementary/src/lib/elm_toolbar.c +++ b/legacy/elementary/src/lib/elm_toolbar.c @@ -1432,8 +1432,9 @@ _item_reorder_start(Elm_Toolbar_Item *item) } static Eina_Bool -_long_press(Elm_Toolbar_Item *it) +_long_press_cb(void *data) { + Elm_Toolbar_Item *it = data; ELM_TOOLBAR_DATA_GET(WIDGET(it), sd); sd->long_timer = NULL; @@ -1496,7 +1497,7 @@ _mouse_down_cb(Elm_Toolbar_Item *it, (sd->long_timer, _elm_config->longpress_timeout); else sd->long_timer = ecore_timer_add - (_elm_config->longpress_timeout, (Ecore_Task_Cb)_long_press, it); + (_elm_config->longpress_timeout, _long_press_cb, it); evas_object_event_callback_add(VIEW(it), EVAS_CALLBACK_MOUSE_MOVE, (Evas_Object_Event_Cb)_mouse_move_cb, it);