diff --git a/src/controller/posts.py b/src/controller/posts.py index 7e8d8d0..b48c80a 100644 --- a/src/controller/posts.py +++ b/src/controller/posts.py @@ -194,9 +194,7 @@ class audio(postController): self.post = postObject self.dialog = postDialogs.audio() widgetUtils.connect_event(self.dialog.list, widgetUtils.LISTBOX_CHANGED, self.handle_changes) - print "loading audios..." self.load_audios() - print "Filling information..." self.fill_information(0) widgetUtils.connect_event(self.dialog.download, widgetUtils.BUTTON_PRESSED, self.download) widgetUtils.connect_event(self.dialog.play, widgetUtils.BUTTON_PRESSED, self.play) @@ -270,6 +268,7 @@ class audio(postController): for i in self.post: s = u"{0} - {1}. {2}".format(i["title"], i["artist"], utils.seconds_to_string(i["duration"])) self.dialog.insert_audio(s) + self.dialog.list.SetSelection(0) def handle_changes(self, *args, **kwargs): p = self.dialog.get_audio() diff --git a/src/extra/SpellChecker/spellchecker.py b/src/extra/SpellChecker/spellchecker.py index 8c38194..7268f88 100644 --- a/src/extra/SpellChecker/spellchecker.py +++ b/src/extra/SpellChecker/spellchecker.py @@ -66,4 +66,8 @@ class spellChecker(object): def replaceAll(self, ev): self.checker.replace_always(self.dialog.get_selected_suggestion()) - self.check() \ No newline at end of file + self.check() + + def clean(self): + if hasattr(self, "dialog"): + self.dialog.Destroy() \ No newline at end of file diff --git a/src/sessionmanager/session.py b/src/sessionmanager/session.py index 4cf7ac8..6d7259f 100644 --- a/src/sessionmanager/session.py +++ b/src/sessionmanager/session.py @@ -79,7 +79,7 @@ def compose_new(status, session): for i in xrange(0, status["audio"]["count"]): composed_audio = compose_audio(status["audio"]["items"][i], session) prem += u"{0} - {1}, ".format(composed_audio[0], composed_audio[1]) - message = _(u"{0} has posted {1} audios: {2}").format(user, status["audio"]["count"], prem) + message = _(u"{0} has added {1} audios: {2}").format(user, status["audio"]["count"], prem) elif status["type"] == "friend": msg_users = u"" for i in status["friends"]["items"]: