[orca] Add customization to present chat room name after incoming message
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add customization to present chat room name after incoming message
- Date: Wed, 7 Sep 2016 23:44:49 +0000 (UTC)
commit ab96d338b2e26272898f22a377bfb3a08eae6628
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Sep 7 19:40:44 2016 -0400
Add customization to present chat room name after incoming message
The default behavior is unchanged. Users who would prefer the chat room
name be presented after the incoming message rather than before can
accomplish this by adding the following lines to orca-customizations.py:
import orca.settings
orca.settings.presentChatRoomLast = True
src/orca/chat.py | 6 +++++-
src/orca/settings.py | 1 +
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/chat.py b/src/orca/chat.py
index 4431f3a..ca70b52 100644
--- a/src/orca/chat.py
+++ b/src/orca/chat.py
@@ -593,7 +593,11 @@ class Chat:
text = ""
if _settingsManager.getSetting('chatSpeakRoomName') and chatRoomName:
text = messages.CHAT_MESSAGE_FROM_ROOM % chatRoomName
- text = self._script.utilities.appendString(text, message)
+
+ if not settings.presentChatRoomLast:
+ text = self._script.utilities.appendString(text, message)
+ else:
+ text = self._script.utilities.appendString(message, text)
if len(text.strip()):
voice = self._script.speechGenerator.voice(string=text)
diff --git a/src/orca/settings.py b/src/orca/settings.py
index de17858..63b09aa 100644
--- a/src/orca/settings.py
+++ b/src/orca/settings.py
@@ -380,3 +380,4 @@ structNavInSayAll = False
# N.B. The following are experimental and may change or go away at any time.
enableSadPidginHack = False
+presentChatRoomLast = False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]