|
|
@ -802,7 +802,7 @@ class Interface(object): |
|
|
|
"""Function called if the retrival of current messages returns an |
|
|
|
"""Function called if the retrival of current messages returns an |
|
|
|
exception.""" |
|
|
|
exception.""" |
|
|
|
_log.debug(str(exception)) |
|
|
|
_log.debug(str(exception)) |
|
|
|
|
|
|
|
|
|
|
|
# if we get a NetworksNoNetworkSetupError, we need to show the |
|
|
|
# if we get a NetworksNoNetworkSetupError, we need to show the |
|
|
|
# settings window |
|
|
|
# settings window |
|
|
|
if isinstance(exception, NetworksNoNetworkSetupError): |
|
|
|
if isinstance(exception, NetworksNoNetworkSetupError): |
|
|
@ -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 |
|
|
|