[Sugar-devel] [PATCH] Use set_toolbar_box() in example code.

Aleksey Lim alsroot at member.fsf.org
Sat Jun 19 18:45:34 EDT 2010


On Sat, Jun 19, 2010 at 10:35:42PM +0000, Aleksey Lim wrote:
> On Sat, Jun 19, 2010 at 08:52:18AM -0400, Bernie Innocenti wrote:
> > The set_toolbox() method is obsolete, so let's not advertise it.
> > 
> > Signed-off-by: Bernie Innocenti <bernie at codewiz.org>
> > ---
> >  src/sugar/activity/widgets.py |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/src/sugar/activity/widgets.py b/src/sugar/activity/widgets.py
> > index f89ac1f..8df04ea 100644
> > --- a/src/sugar/activity/widgets.py
> > +++ b/src/sugar/activity/widgets.py
> > @@ -328,7 +328,7 @@ class ActivityToolbox(Toolbox):
> >          ... your code, inserting all other toolbars you need, like EditToolbar
> >  
> >          # Add the toolbox to the activity frame:
> > -        self.set_toolbox(toolbox)
> > +        self.set_toolbar_box(toolbox)
> >          # And make it visible:
> >          toolbox.show()
> >      """
> > -- 
> > 1.7.1
> > 
> 
> Maybe it is too early to delete obsolete methods, there could be
> activities that don't follow new API in the field.

Oops, sorry. Was too fast and didn't look into patch itself.
+1

-- 
Aleksey


More information about the Sugar-devel mailing list