Browse Source

fixed the way we work with volatile messages when updating status

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

5
mitterlib/ui/ui_pygtk.py

@ -802,7 +802,7 @@ class Interface(object):
"""Function called if the retrival of current messages returns an
exception."""
_log.debug(str(exception))
# if we get a NetworksNoNetworkSetupError, we need to show the
# settings window
if isinstance(exception, NetworksNoNetworkSetupError):
@ -897,7 +897,7 @@ class Interface(object):
### Results for the update status call
def _post_update_status(self, widget, data):
"""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._clear_text(None)
@ -926,6 +926,7 @@ class Interface(object):
# re-enable the update, or the user won't be able to repost their
# message.
self._action_group.get_action('Update').set_sensitive(True)
self._actionbar.volatile(_('Update failed.'), pair='update')
return
### Results for the delete message call

Loading…
Cancel
Save