diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-08-12 14:15:43 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-08-12 14:15:43 (GMT) |
commit | ae907f86426862de18b8b284346480c9871bed7e (patch) | |
tree | cedc7b0f81a44b7f1f5f8a01f7a863025ab50a0b | |
parent | b4f6875345952f7a27c522e7d25dea574d39d1ee (diff) |
fixed-regression-with-old-style-toolbars (walter bender)
-rw-r--r-- | activity.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activity.py b/activity.py index 7d70b41..f328f59 100644 --- a/activity.py +++ b/activity.py @@ -89,6 +89,7 @@ class AcousticMeasureActivity(activity.Activity): self._logger.error("setlocale failed") # top toolbar with share and close buttons: + try: from sugar.graphics.toolbarbox import ToolbarBox from sugar.graphics.toolbarbox import ToolbarButton @@ -145,14 +146,14 @@ class AcousticMeasureActivity(activity.Activity): toolbar = toolbar_box.toolbar except ImportError: - toolbox = ActivityToolbox(self) + toolbox = activity.ActivityToolbox(self) self.set_toolbox(toolbox) toolbox.show() self._t_h_bar = atm_toolbars.TempToolbar() toolbox.add_toolbar(_("Atmosphere"), self._t_h_bar) - self._smoot_bar = smoot_toolbar.SmootToolbar() + self._smoot_bar = smoot_toolbar.SmootToolbar(self) toolbox.add_toolbar(_("Custom metric"), self._smoot_bar) if not self.powerd_running(): |