On Mon, Feb 1, 2010 at 2:19 PM, tristan <blunde...@gmail.com> 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.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to