2010/10/7 Gustavo Sverzut Barbieri <[email protected]>
> 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.
>
>
As I know the evas_object_signal_callback_add() is used to run a callback
when specific signal emitted from edje.
But, it seems Yang's problem is how edj can receive a new event type.
For exmaple, an edc part can listen mouse_event when mouse_events = 1, as
following edc code.
part{
mouse_events: 1;
}
an edc's program part can receive signal like "mouse clicked", as following
edc code.
program {
name: "programname";
signal: "mouse,clicked,*";
source: "partname";
}
Can an edc's program part's signal can support new event type like
program {
name: "programname";
signal: "new event type";
source: "partname";
}
I also have the same problem
Thanks in advance.
whtuhtc
------------------------------------------------------------------------------
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