Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readtoolbar.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-03-09 02:25:08 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-03-09 02:25:08 (GMT)
commit05899840483e1911b4e90180b3978c159a8cd00f (patch)
tree3efad6c8bc855fae01b97af8b69b9eb66989a6e8 /readtoolbar.py
parent5d9a3f972013bb4b163f29cdc305e79b63a1fb30 (diff)
Unify speech interface to simplify adoption of gst
Diffstat (limited to 'readtoolbar.py')
-rw-r--r--readtoolbar.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/readtoolbar.py b/readtoolbar.py
index d74a78a..b34dcae 100644
--- a/readtoolbar.py
+++ b/readtoolbar.py
@@ -329,9 +329,7 @@ class SpeechToolbar(gtk.Toolbar):
widget.set_icon_widget(images[int(widget.get_active())])
if widget.get_active():
- if speech.done:
- speech.play(self.activity.add_word_marks(),
- self.activity.highlight_next_word,
- self.activity.reset_play_button)
+ if speech.is_stopped():
+ speech.play(self.activity.add_word_marks())
else:
- speech.done = True
+ speech.stop()