On Wed, Nov 11, 2009 at 6:14 PM, Andreas Volz <li...@brachttal.net> wrote: > Am Wed, 11 Nov 2009 11:20:38 +0100 schrieb Cedric BAIL: > >> On Wed, Nov 11, 2009 at 3:20 AM, Gustavo Sverzut Barbieri >> <barbi...@profusion.mobi> wrote: >> > On Tue, Nov 10, 2009 at 9:05 PM, Andreas Volz <li...@brachttal.net> >> > wrote: >> >> Hello, >> >> >> >> how is it possible to send a signal to a swallowed subgroup in >> >> edje? Is there a special syntax? >> > >> > i guess it's PARTNAME:SOURCE_TO_BE_USED_INSIDE_GROUP >> > >> > so you send this signal and it will translate into a signal >> > SOURCE_TO_BE_USED_INSIDE_GROUP inside group automatically swallowed >> > into PARTNAME. >> > >> > This mostly the same as: >> > >> > g = edje_object_part_object_get("PARTNAME") >> > edje_object_signal_emit(g, "SIG", "SOURCE_TO_BE_USED_INSIDE_GROUP") >> >> In fact, it's a little bit strange, but when emitting signal to a >> swallowed group you should prepend the PARTNAME before the SIGNAL with >> a ":". The PARTNAME will be removed from the SIGNAL when forwarded. >> >> And when you want to watch for a SIGNAL from a swallowed SOURCE, you >> need to prepend the SOURCE with the PARTNAME and a ":". I find this >> incoherent, but it's perhaps just me. > > Good to know, this would be my next question. But it sounds strange. > Could anyone tell if this is really intended to work like this?
yeah, rephorm did the inner->outer edje signals when he first wrote type:GROUP, then Sachiel and I added the other way (maybe with help of others, don't recall). Although cedric finds it strange, I guess it's "expected", no? from internal group you emit: "sig" "src". this group is represented as part "p1" result: to outer group: "sig" "p1:src" --> sounds okay How about sending signals to p1 as source "src"? I'd say is similar, so "p1:src" should work... as it do (or should do if not broken). -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ 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