[Sugar-devel] Initial implementation of toolbars design

Aleksey Lim alsroot at member.fsf.org
Sun Jul 12 23:27:12 EDT 2009


On Sun, Jul 12, 2009 at 12:14:42PM +0100, Lucian Branescu wrote:
> I meant something like Toolbox.get_toolbars()

I've added Toolbar.subs property to get all ToolItems that have
sub-widgets

> and/or
> Toolbox.get_toolbar(name:str)

hmm.. there is no any names since they are regular ToolButtons

> , 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
> >
> 

-- 
Aleksey


More information about the Sugar-devel mailing list