Browse Source

replaced all references to _update_statusbar to _statusbar.volatile

master
Julio Biason 15 years ago
parent
commit
7b4c6cb71b
  1. 16
      mitterlib/ui/ui_pygtk.py

16
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):

Loading…
Cancel
Save