On Wed, Oct 6, 2010 at 3:09 AM, CZhe Yang <[email protected]> wrote: > Hi, I have some questions. I create new event types. > For example, using > evas_object_event_callback_add(evas_object,"MY DEFINE EVENT > TYPE",callback_function,NULL); > Basicly, it work. > If the evas_object is created from EDJ files, the evas_object can't receive > "MY DEFINE EVENT TYPE" event and call the callback function. > The evas object may be like this: > evas_object = edje_edit_object_add(evas); > On the other hand, if the event type is EVAS_CALLBACK_MOUSE_DOWN, the > evas_object can work well. > So how can I do to fix the problems?
edje does not emit signals using evas_object_smart_callback_call(), thus evas_object_smart_callback_add() gets nothing. You should use edje_object_signal_callback_add() instead. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
