Browse Source

fixed the way we work with volatile messages when updating status

master
Julio Biason 15 years ago
parent
commit
512ff3b3dd
  1. 3
      mitterlib/ui/ui_pygtk.py

3
mitterlib/ui/ui_pygtk.py

@ -897,7 +897,7 @@ class Interface(object):
### Results for the update status call ### Results for the update status call
def _post_update_status(self, widget, data): def _post_update_status(self, widget, data):
"""Called when the status is updated correctly.""" """Called when the status is updated correctly."""
self._update_statusbar(_('Your status was updated.')) self._statusbar.volatile(_('Your status was updated.'), pair='update')
self._action_group.get_action('Update').set_sensitive(True) self._action_group.get_action('Update').set_sensitive(True)
self._clear_text(None) self._clear_text(None)
@ -926,6 +926,7 @@ class Interface(object):
# re-enable the update, or the user won't be able to repost their # re-enable the update, or the user won't be able to repost their
# message. # message.
self._action_group.get_action('Update').set_sensitive(True) self._action_group.get_action('Update').set_sensitive(True)
self._actionbar.volatile(_('Update failed.'), pair='update')
return return
### Results for the delete message call ### Results for the delete message call

Loading…
Cancel
Save