Thank you Bruno and Gustavo

> You have a good point, calling the same function twice isn't good.
>
> On the other side, we are trying to keep a simple, consistent API.
> We have lots of relevant properties for each widget that is set with
> some default value on add() and later the user can set it as intended.
>
> For example, we have a clock, we can set if it's am/pm or 24h, if it
> show seconds or not, ...
> If we add new add() functions for each property, and possible
> combinations (otherwise we would have to choose some default
> properties anyway), we would have a bloated API, hard to understand
> and use. For example:
>
> elm_clock_24_show_seconds_add()
> elm_clock_24_no_seconds_add()
> elm_clock_am_pm_show_seconds_add()
> elm_clock_am_pm_no_seconds_add()
>
> It wouldn't scale, imho. Do you agree ?

Acccepted ;)

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to