[Sugar-devel] Initial implementation of toolbars design

Lucian Branescu lucian.branescu at gmail.com
Sun Jul 12 07:14:42 EDT 2009


I meant something like Toolbox.get_toolbars() and/or
Toolbox.get_toolbar(name:str), so you can easily identify a toolbar,
or check how many toolbars they are and so on.

I don't know how that fits in the new API, that's why I didn't specify details.

2009/7/11 Aleksey Lim <alsroot at member.fsf.org>:
> On Sat, Jul 11, 2009 at 10:49:21AM +0100, Lucian Branescu wrote:
>> b) About the API, I would like to stress the need for ways to (more)
>> easily remove and add toolbars/toolbar items at runtime.
>
> Usage of new sugar.graphics.Toolbar is clean in that case,
> there are just another tool button - sugar.graphics.ToolbarButton
> just another gtk.Toolbar in sugar.graphics.Toolbars.top property
> so, you a free to invoke all gtk.Toolbar methods for 'top' property
> including adding/removing ToolbarButton buttons.
>
> --
> Aleksey
>


More information about the Sugar-devel mailing list