diff options
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/activity.py b/activity.py index de76eb8..1d75da9 100644 --- a/activity.py +++ b/activity.py @@ -238,8 +238,6 @@ class Chat(activity.Activity): if self.owner.props.nick in text: self.play_sound("said_nick") - else: - self.play_sound("received") def _alert(self, title, text=None): alert = NotifyAlert(timeout=5) @@ -341,7 +339,6 @@ class Chat(activity.Activity): entry.props.text = '' if self.text_channel: self.text_channel.send(text) - self.play_sound("send") else: logger.debug('Tried to send message but text channel ' 'not connected.') @@ -388,9 +385,7 @@ class Chat(activity.Activity): SOUNDS_PATH = os.path.join(get_bundle_path(), 'sounds') SOUNDS = {"said_nick": os.path.join(SOUNDS_PATH, 'alert.wav'), "login": os.path.join(SOUNDS_PATH, 'login.wav'), - "logout": os.path.join(SOUNDS_PATH, 'logout.wav'), - "received": os.path.join(SOUNDS_PATH, 'receive.wav'), - "send": os.path.join(SOUNDS_PATH, 'send.wav')} + "logout": os.path.join(SOUNDS_PATH, 'logout.wav')} self.element.set_state(Gst.State.NULL) self.element.set_property("uri", "file://%s" % SOUNDS[event]) |