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 <alsr...@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 _______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel