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

Bernie Innocenti bernie at codewiz.org
Sat Jun 19 08:52:18 EDT 2010


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



More information about the Sugar-devel mailing list