Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-08-15 22:13:04 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-08-15 22:13:04 (GMT)
commit09e0cdc4219c7bda18f2226705d27fdc7a0af33d (patch)
tree707946c3bc38260f67baaa9f0eabd1c21b246371
parentefe6574778010e5e08b542a6488abb074529c715 (diff)
fixed sound playback from button
-rw-r--r--PortfolioActivity.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/PortfolioActivity.py b/PortfolioActivity.py
index ac5f534..468dc5a 100644
--- a/PortfolioActivity.py
+++ b/PortfolioActivity.py
@@ -1103,7 +1103,8 @@ class PortfolioActivity(activity.Activity):
self._playback_button.set_layer(DRAG)
self._playback_button.type = 'playing'
gobject.timeout_add(1000, self._playback_button_reset)
- play_audio_from_file(os.path.join(self.datapath, 'output.ogg'))
+ gobject.idle_add(play_audio_from_file,
+ self._slides[self.i].sound.file_path)
def _playback_button_reset(self):
self._playback_button.set_image(self.playback_pixbuf)