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.
B.R.
--
Rafael Fonseca
ProFUSION embedded systems
http://www.profusion.mobi
Index: src/lib/elm_thumb.c
===================================================================
--- src/lib/elm_thumb.c (revision 50248)
+++ src/lib/elm_thumb.c (working copy)
@@ -120,9 +120,9 @@
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 @@
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;
}
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel