mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
A few timeline bugfixes
This commit is contained in:
parent
26644da7b4
commit
69aa27c33e
@ -710,6 +710,7 @@ class Controller(object):
|
||||
buff = self.view.search(buffer.name, buffer.account)
|
||||
answer = buffer.remove_buffer()
|
||||
if answer == False: return
|
||||
self.right()
|
||||
self.view.delete_buffer(buff)
|
||||
buffer.session.sound.play("delete_timeline.ogg")
|
||||
self.buffers.remove(buffer)
|
||||
@ -1012,6 +1013,7 @@ class Controller(object):
|
||||
play_sound = "tweet_timeline.ogg"
|
||||
if "%s-timeline" % (who,) not in buffer.session.settings["other_buffers"]["muted_buffers"]:
|
||||
self.notify(buffer.session, play_sound=play_sound)
|
||||
output.speak(_(u"One tweet from %s") % (data["user"]["name"]))
|
||||
buffer.add_new_item(data)
|
||||
|
||||
def start_buffers(self, session):
|
||||
|
@ -27,7 +27,7 @@ class basicTweet(object):
|
||||
def translate(self, event=None):
|
||||
dlg = translator.gui.translateDialog()
|
||||
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")]
|
||||
dest = [x[0] for x in translator.translator.available_languages()][dlg.get("dest_lang")]
|
||||
t = translator.translator.Translator()
|
||||
|
Loading…
Reference in New Issue
Block a user