Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activity/activity.info2
-rw-r--r--speech.py2
-rw-r--r--speech_gst.py2
-rw-r--r--speechtoolbar.py4
4 files changed, 5 insertions, 5 deletions
diff --git a/activity/activity.info b/activity/activity.info
index 8b2221f..3e0fb7e 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -3,7 +3,7 @@ name = Write
bundle_id = org.laptop.AbiWordActivity
exec = sugar-activity AbiWordActivity.AbiWordActivity
icon = activity-write
-activity_version = 78
+activity_version = 79
show_launcher = 1
mime_types = text/rtf;text/plain;application/x-abiword;text/x-xml-abiword;application/msword;application/rtf;application/xhtml+xml;text/html;application/vnd.oasis.opendocument.text
license = GPLv2+
diff --git a/speech.py b/speech.py
index d950fbd..1e88a86 100644
--- a/speech.py
+++ b/speech.py
@@ -17,7 +17,7 @@
import logging
-_logger = logging.getLogger('read-etexts-activity')
+_logger = logging.getLogger('write-activity')
supported = True
diff --git a/speech_gst.py b/speech_gst.py
index b827ad9..64d4ee3 100644
--- a/speech_gst.py
+++ b/speech_gst.py
@@ -19,7 +19,7 @@ import logging
import speech
-_logger = logging.getLogger('read-etexts-activity')
+_logger = logging.getLogger('write-activity')
def get_all_voices():
diff --git a/speechtoolbar.py b/speechtoolbar.py
index ca6eae5..6d4d56d 100644
--- a/speechtoolbar.py
+++ b/speechtoolbar.py
@@ -73,7 +73,7 @@ class SpeechToolbar(gtk.Toolbar):
combotool = ToolComboBox(self.voice_combo)
self.insert(combotool, -1)
combotool.show()
- speech.reset_buttons_cb = self.reset_buttons_cb
+ speech.reset_cb = self.reset_buttons_cb
speech.end_text_cb = self.reset_buttons_cb
def compare_voices(self, a, b):
@@ -170,7 +170,7 @@ class SpeechToolbar(gtk.Toolbar):
# play selected text, if not, play all
abi = self._activity.abiword_canvas
selection = abi.get_selection('text/plain')
- if selection[1] == 0:
+ if selection[0] is None or selection[1] == 0:
# nothing selected
abi.select_all()
text = abi.get_selection('text/plain')[0]