A few timeline bugfixes

This commit is contained in:
Manuel Cortez 2015-03-14 17:38:26 -06:00
parent 26644da7b4
commit 69aa27c33e
2 changed files with 3 additions and 1 deletions

View File

@ -710,6 +710,7 @@ class Controller(object):
buff = self.view.search(buffer.name, buffer.account) buff = self.view.search(buffer.name, buffer.account)
answer = buffer.remove_buffer() answer = buffer.remove_buffer()
if answer == False: return if answer == False: return
self.right()
self.view.delete_buffer(buff) self.view.delete_buffer(buff)
buffer.session.sound.play("delete_timeline.ogg") buffer.session.sound.play("delete_timeline.ogg")
self.buffers.remove(buffer) self.buffers.remove(buffer)
@ -1012,6 +1013,7 @@ class Controller(object):
play_sound = "tweet_timeline.ogg" play_sound = "tweet_timeline.ogg"
if "%s-timeline" % (who,) not in buffer.session.settings["other_buffers"]["muted_buffers"]: if "%s-timeline" % (who,) not in buffer.session.settings["other_buffers"]["muted_buffers"]:
self.notify(buffer.session, play_sound=play_sound) self.notify(buffer.session, play_sound=play_sound)
output.speak(_(u"One tweet from %s") % (data["user"]["name"]))
buffer.add_new_item(data) buffer.add_new_item(data)
def start_buffers(self, session): def start_buffers(self, session):

View File

@ -27,7 +27,7 @@ class basicTweet(object):
def translate(self, event=None): def translate(self, event=None):
dlg = translator.gui.translateDialog() dlg = translator.gui.translateDialog()
if dlg.get_response() == widgetUtils.OK: if dlg.get_response() == widgetUtils.OK:
text_to_translate = self.message.get_text() text_to_translate = self.message.get_text().encode("utf-8")
source = [x[0] for x in translator.translator.available_languages()][dlg.get("source_lang")] source = [x[0] for x in translator.translator.available_languages()][dlg.get("source_lang")]
dest = [x[0] for x in translator.translator.available_languages()][dlg.get("dest_lang")] dest = [x[0] for x in translator.translator.available_languages()][dlg.get("dest_lang")]
t = translator.translator.Translator() t = translator.translator.Translator()