On Mon, Feb 1, 2010 at 5:54 PM, Gustavo Sverzut Barbieri
<[email protected]> wrote:
> On Mon, Feb 1, 2010 at 2:19 PM, tristan <[email protected]> wrote:
>> Hello,
>>
>> I was having trouble with the EDC programs that were missing a filter for
>> the current state of source part. This allow for instance to make a toggle
>> button without using any C code.
>>
>> I made a patch that add an optional parameter to the "source" keyword of an
>> EDC program : the part state. If this second parameter is omitted, then it
>> behave exactly the same as before, and therefore stay compatible with all
>> other EDC files.
>>
>> Here is an example:
>> program {
>>  name: "set_on"
>>  signal: "mouse,up,*";
>>  source: "button" "is_off"
>>  action: STATE_SET "is_on" 0.0;
>>  target: "button";
>> }
>> program {
>>  name: "set_off"
>>  signal: "mouse,up,*";
>>  source: "button" "is_on"
>>  action: STATE_SET "is_off" 0.0;
>>  target: "button";
>> }
>
> dunno if this is good... and you don't need C code to do it, you can
> use embryo or lua.

Yes, you can, but it's lighter in my opinion if we could just do that
this way. Reading from the patch, doesn't sound like it could break
older edje and provide a nice feature for people that don't like to
start an script just to test a state.
-- 
Cedric BAIL

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to