Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-03-12 19:33:04 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-03-12 19:33:04 (GMT)
commita82ba3893ac6b249eefe5081b76cc3be92b428c5 (patch)
tree3f20d107898d157fb71d5aea8757011e195cdda5 /activity.py
parent69d7246513000a88bd903f3cf16497c1d5f9ff91 (diff)
Remove map event issue by switching to {new|resume|save|share}_instance
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/activity.py b/activity.py
index 7b89a66..020ab78 100644
--- a/activity.py
+++ b/activity.py
@@ -35,9 +35,6 @@ class CartoonBuilderActivity(SharedActivity):
self.notebook = gtk.Notebook()
SharedActivity.__init__(self, self.notebook, SERVICE, handle)
- self.connect('init', self._init_cb)
- self.connect('tube', self._tube_cb)
-
self.notebook.show()
self.notebook.props.show_border = False
self.notebook.props.show_tabs = False
@@ -63,19 +60,20 @@ class CartoonBuilderActivity(SharedActivity):
toolbox.set_current_toolbar(1)
- def read_file(self, filepath):
+ def new_instance(self):
+ self.montage.restore()
+
+ def resume_instance(self, filepath):
document.load(filepath)
char.load()
ground.load()
sound.load()
+ self.montage.restore()
- def write_file(self, filepath):
+ def save_instance(self, filepath):
document.save(filepath)
- def _init_cb(self, sender):
- self.montage.restore()
-
- def _tube_cb(self, activity, tube_conn, initiating):
+ def share_instance(self, tube_conn, initiating):
self.messenger = Messenger(tube_conn, initiating, self.montage)
def _toolbar_changed_cb(self, widget, index):