On Fri, Jun 19, 2009 at 5:04 PM, Sergey
Semernin<[email protected]> wrote:
> Hello, All.
>
> In message from 19 june 2009 Gustavo Sverzut Barbieri wrote:
>
>> > gadgets it call 'is_site(NULL)', so this case should be properly matched
>> > in gadget module.
>>
>> Ok, in order to avoid adding overhead document that is_site() will get
>> a stringshared string and you pre-stringshare the known names as you
>> listed below. Before calling is_site() you certify that the parameter
>> is stringshared already or do that once. Then functions can just check
>> for pointers being equal and avoid strcmp().
>
> In that case, if we avoiding strcmp, maybe let's use integer id for site?
> Make enums with two ranges: mandatory and user. And then we simple check id's.

could be as well.


>> Last but not least, since we have common stuff here, provide the
>> following functions by default:
>>  - PREFIX_only_shelf_is_site()
>>  - PREFIX_only_desktop_is_site()
>>  - PREFIX_only_efm_toolbar_is_site()
>>  - PREFIX_not_efm_toolbar_is_site()
>
> Right, I'll do this helpers.
>
>> > There are several site names exists now:
>> >    -- 'shelf' - all shelfs,
>> >    -- 'toolbar' - the toolbar used in EFM2,
>>
>> name this "fileman" or something else, otherwise if we wish to have
>> other toolbar categories it will conflict.
>
> I have examined code and seen that e_toolbar with gadcons used only in efm. In
> all other cases used toolbar from e_widget_toolbar.c and it can't have
> gadcons. Right?

no idea :-)


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to