diff options
author | Aleksey 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) |
commit | 05899840483e1911b4e90180b3978c159a8cd00f (patch) | |
tree | 3efad6c8bc855fae01b97af8b69b9eb66989a6e8 /readtoolbar.py | |
parent | 5d9a3f972013bb4b163f29cdc305e79b63a1fb30 (diff) |
Unify speech interface to simplify adoption of gst
Diffstat (limited to 'readtoolbar.py')
-rw-r--r-- | readtoolbar.py | 8 |
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() |