Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/atoidejouer/ui/toolbar.py
diff options
context:
space:
mode:
Diffstat (limited to 'atoidejouer/ui/toolbar.py')
-rw-r--r--atoidejouer/ui/toolbar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/atoidejouer/ui/toolbar.py b/atoidejouer/ui/toolbar.py
index c283c57..80f156e 100644
--- a/atoidejouer/ui/toolbar.py
+++ b/atoidejouer/ui/toolbar.py
@@ -99,7 +99,7 @@ def _cb_back(widget, toolbar):
# do switch
toolbar._switch(toolbar.name.replace('_add', ''))
# restore screen
- toolbar.activity._change_screen(toolbar)
+ toolbar.activity.change_screen(toolbar.name)
# get screen now
_screen = toolbar.activity.get_current_screen()
_screen.scene.refresh()
@@ -208,7 +208,7 @@ def _cb_help_back(widget, toolbar):
toolbar.activity._toolbox.set_current_toolbar(
TOOLBAR_INDEXES.index(_previous.replace('_add', '')))
# restore previous
- toolbar.activity._change_screen(name=_previous)
+ toolbar.activity.change_screen(_previous)
BUTTONS = {
@@ -401,7 +401,7 @@ class Toolbar(gtk.Toolbar):
self._switch(self.name.replace('_add', ''))
else:
# update current screen
- self.activity._change_screen(self)
+ self.activity.change_screen(self.name)
if 'add' in self._button_dict:
# enable or disble add
_mode = config.Config().get('activity>mode')