From a0469b2f7c92cb61050bbb7aa7b9799949e49e00 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 14 Jul 2010 21:29:10 +0000 Subject: [PATCH] Fix elm_thumb smart callback calling Currently, elm_thumb is passing the wrong pointer to the smart_callback_call function, so the callbacks are not being called. The attached patch fix that. By: Rafael Fonseca SVN revision: 50258 --- src/lib/elm_thumb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_thumb.c b/src/lib/elm_thumb.c index f0da4f2..4c7a32f 100644 --- a/src/lib/elm_thumb.c +++ b/src/lib/elm_thumb.c @@ -120,9 +120,9 @@ _mouse_down_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void else wd->on_hold = EINA_FALSE; if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK) - evas_object_smart_callback_call(data, SIG_CLICKED_DOUBLE, NULL); + evas_object_smart_callback_call(wd->self, SIG_CLICKED_DOUBLE, NULL); else - evas_object_smart_callback_call(data, SIG_PRESS, NULL); + evas_object_smart_callback_call(wd->self, SIG_PRESS, NULL); } static void @@ -138,7 +138,7 @@ _mouse_up_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void * else wd->on_hold = EINA_FALSE; if (!wd->on_hold) - evas_object_smart_callback_call(data, SIG_CLICKED, NULL); + evas_object_smart_callback_call(wd->self, SIG_CLICKED, NULL); wd->on_hold = EINA_FALSE; } -- 2.7.4