Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/activity.py b/activity.py
index 56f3af3..b30a01b 100644
--- a/activity.py
+++ b/activity.py
@@ -72,10 +72,10 @@ class AnimateActivity(activity.Activity):
vbox = gtk.VBox()
vbox.pack_start(self._frames_list, True, True, 0)
- frames_toolbar = FramesToolbar()
- frames_toolbar.connect('go-up', self._frames_list.move_up)
- frames_toolbar.connect('go-down', self._frames_list.move_down)
- vbox.pack_end(frames_toolbar, False, True, 0)
+ self._frames_toolbar = FramesToolbar()
+ self._frames_toolbar.connect('go-up', self._frames_list.move_up)
+ self._frames_toolbar.connect('go-down', self._frames_list.move_down)
+ vbox.pack_end(self._frames_toolbar, False, True, 0)
canvas.pack_end(vbox, False, True, 0)
canvas.connect("expose-event", self.__canvas_expose_cb)
@@ -199,6 +199,8 @@ class AnimateActivity(activity.Activity):
if not self._animation:
self._animation = animation.Animation(width, height)
self._animation.set_mode(self._animation_mode)
+ self._animation.connect('running',
+ self._frames_toolbar.set_buttons_sensitive)
for pixbuf in self._animation_frames:
self._animation.add_frame(pixbuf)
self._frames_list.add_frame(pixbuf)