Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/montage.py
diff options
context:
space:
mode:
Diffstat (limited to 'montage.py')
-rw-r--r--montage.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/montage.py b/montage.py
index b1c4515..a0c0e86 100644
--- a/montage.py
+++ b/montage.py
@@ -55,6 +55,9 @@ class View(gtk.EventBox):
self.playing = gobject.timeout_add(self.waittime, self.playframe)
def playbackwards(self):
+ if self.playing:
+ gobject.source_remove(self.playing)
+
self.frames = kinematic.makeframes()
fsecs = self.frames.keys()
fsecs.sort()
@@ -68,6 +71,9 @@ class View(gtk.EventBox):
self.playing = gobject.timeout_add(self.waittime, self.playframe)
def playforwards(self):
+ if self.playing:
+ gobject.source_remove(self.playing)
+
self.frames = kinematic.makeframes()
fsecs = self.frames.keys()
fsecs.sort()
@@ -84,7 +90,9 @@ class View(gtk.EventBox):
if not self.playing:
return
- self.playing = False
+ gobject.source_remove(self.playing)
+ self.playing = None
+
# set the main window to the keyframe
if not model.keys[self.kfselected].empty():
self.key.assign(model.keys[self.kfselected])