Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2010-06-27 03:25:30 (GMT)
committer Gary Martin <gary@garycmartin.com>2010-06-27 03:25:30 (GMT)
commit8dcc7fe6297f9bfdd9598b781ef6ea91283578d4 (patch)
treec37671ad75a6f1b3d96f8776753e23073cf6f9f6 /activity.py
parent03b2ab76613a6a705538861714581be4d599dacd (diff)
Fixed intent bug causing multiple Create tabs in old style toolbars.
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/activity.py b/activity.py
index 3aae9ea..2115781 100644
--- a/activity.py
+++ b/activity.py
@@ -89,7 +89,6 @@ class PhysicsActivity(olpcgames.PyGameActivity):
toolbar_box.show()
return toolbar_box
-
except NameError:
#Use old <= 0.84 toolbar design
# make a toolbox
@@ -132,9 +131,9 @@ class PhysicsActivity(olpcgames.PyGameActivity):
button.show()
self.radioList[button] = c.name
- # add the toolbars to the toolbox
- toolbox.add_toolbar(_("Create"),create_toolbar)
- create_toolbar.show()
+ # add the toolbars to the toolbox
+ toolbox.add_toolbar(_("Create"),create_toolbar)
+ create_toolbar.show()
toolbox.show()
self.set_toolbox(toolbox)