Lets try that again... Ive got a callback like that in Keys and Ardy. Signal from edje is captured and used to trigger a function in some python-efl code. These functions are usually the same as C code so its a decent place to start.
-Toma. On 11/26/09, Tom Haste <tomha...@gmail.com> wrote: > On 11/26/09, Andreas Volz <li...@brachttal.net> wrote: >> Am Tue, 24 Nov 2009 19:50:31 -0200 schrieb Gustavo Sverzut Barbieri: >> >>> On Tue, Nov 24, 2009 at 7:33 PM, Andreas Volz <li...@brachttal.net> >>> wrote: >>> > Hello, >>> > >>> > I tried to send some messages from my edje file to my application >>> > code. My first idea was to emit signals and put my data somewhere >>> > in the signal or source field. >>> > >>> > Then I found the edje_object_message_* functions. Maybe this could >>> > help here. Could someone show a little example or explain how to >>> > use these functions? >>> >>> Check python bindings, I did a file for that, should be easy to figure >>> out. I guess some parts of Elementary or E17 should do it as well. But >>> it's quite simple: >>> >>> // C: >>> Edje_Message_Int msg = { 1234 }; >>> edje_object_message_send(ed, EDJE_MESSAGE_INT, code, &msg); >>> >>> // EDC: >>> define a public function in your group called "message()". It will >>> take type and code, then whatever you give as msg will come as >>> variable arguments to edje. Much like va_arg(), you need to know the >>> proper type to get it from embryo. See embryo.inc >> >> Does it also work the other way around? How could I send messages from >> edje (embryo/lua) to C? Maybe with another mechanism? >> >> regards >> Andreas >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > -- > Sent from my mobile device > -- Sent from my mobile device ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel