From 7b4c6cb71b5e0f1c8ff62957ea46e92036e918b2 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sun, 18 Apr 2010 18:13:43 -0300 Subject: [PATCH] replaced all references to _update_statusbar to _statusbar.volatile --- mitterlib/ui/ui_pygtk.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mitterlib/ui/ui_pygtk.py b/mitterlib/ui/ui_pygtk.py index 10f637b..9dbe7e2 100644 --- a/mitterlib/ui/ui_pygtk.py +++ b/mitterlib/ui/ui_pygtk.py @@ -616,8 +616,8 @@ class Interface(object): if not message: return - self._update_statusbar(_('Reposting %s message...') % - (message.author.username)) + self._statusbar.volatile(_('Reposting %s message...') % + (message.author.username), pair='repost') self._threads.add_work(self._post_repost_message, self._exception_repost_message, self._connection.repost, @@ -639,7 +639,7 @@ class Interface(object): display = _('Removing message from %s from favorites...') else: display = _('Marking message from %s as favorite...') - self._update_statusbar(display % (message.author.username)) + self._statusbar(display % (message.author.username), pair='favorite') self._threads.add_work(self._post_favorite_message, self._exception_favorite_message, self._connection.favorite, @@ -828,7 +828,9 @@ class Interface(object): buttons=gtk.BUTTONS_OK) error_win.run() error_win.hide() - self._update_statusbar(_('Auto-update disabled')) + self._statusbar.static(_('Auto-update disabled')) + self._statusbar.volatile(_('Error retrieving new messages'), + pair='update') if self._statusicon: self._statusicon.set_from_pixbuf(self._images['icon-error']) @@ -943,7 +945,7 @@ class Interface(object): _log.debug('Message deleted.') # any grid can take care of deleting the message MessageGrid.delete(message) - self._update_statusbar(_('Message deleted.')) + self._statusbar.volatile(_('Message deleted.'), pair='delete') return def _exception_delete_message(self, widget, exception): @@ -962,7 +964,7 @@ class Interface(object): def _post_repost_message(self, widget, data): """Called when the message is reposted successfully.""" _log.debug('Repost successful') - self._update_statusbar(_('Message reposted')) + self._statusbar.volatile(_('Message reposted'), pair='repost') return def _exception_repost_message(self, widget, exception): @@ -986,7 +988,7 @@ class Interface(object): display = _('Message favorited.') else: display = _('Message unfavorited.') - self._update_statusbar(display) + self._statusbar.volatile(display, pair='favorite') return def _exception_favorite_message(self, widget, exception):