diff options
author | James Simmons <jim@simmons.olpc> | 2010-03-07 19:19:33 (GMT) |
---|---|---|
committer | James Simmons <jim@simmons.olpc> | 2010-03-07 19:19:33 (GMT) |
commit | fe203d7f3835bfc52747be879c129723cd102366 (patch) | |
tree | 1140e543570a577bcab20cf86069662757d5a9f5 /ReadEtextsActivity.py | |
parent | 23fae6ea98868ae6b838f37d00d5ce24c19230d5 (diff) |
Add speech button to new style toolbar.
Diffstat (limited to 'ReadEtextsActivity.py')
-rw-r--r-- | ReadEtextsActivity.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ReadEtextsActivity.py b/ReadEtextsActivity.py index 0cffd5a..f6e8296 100644 --- a/ReadEtextsActivity.py +++ b/ReadEtextsActivity.py @@ -440,6 +440,14 @@ class ReadEtextsActivity(activity.Activity): toolbar_box.toolbar.insert(view_toolbar_button, -1) view_toolbar_button.show() + if speech.supported: + self.speech_toolbar = SpeechToolbar() + self.speech_toolbar.set_activity(self) + self.speech_toolbar.show() + speech_toolbar_button = ToolbarButton(page=self.speech_toolbar, icon_name='speech') + toolbar_box.toolbar.insert(speech_toolbar_button, -1) + speech_toolbar_button.show() + self.back = ToolButton('go-previous') self.back.set_tooltip(_('Back')) self.back.props.sensitive = False |