|
|
@ -626,6 +626,18 @@ class Interface(object): |
|
|
|
self._refresh, None) |
|
|
|
self._refresh, None) |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _clear_reply(self): |
|
|
|
|
|
|
|
"""Clear the info about a reply.""" |
|
|
|
|
|
|
|
self._reply_message_id = None |
|
|
|
|
|
|
|
self._reply_label.set_text('') |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _clear_repost(self): |
|
|
|
|
|
|
|
"""Clear the info about a repost.""" |
|
|
|
|
|
|
|
self._repost_message_id = None |
|
|
|
|
|
|
|
self._reply_label.set_text('') |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------ |
|
|
|
# ------------------------------------------------------------ |
|
|
|
# Widget callback functions |
|
|
|
# Widget callback functions |
|
|
|
# ------------------------------------------------------------ |
|
|
|
# ------------------------------------------------------------ |
|
|
@ -655,8 +667,8 @@ class Interface(object): |
|
|
|
self._threads.add_work(self._post_update_status, |
|
|
|
self._threads.add_work(self._post_update_status, |
|
|
|
self._exception_update_status, |
|
|
|
self._exception_update_status, |
|
|
|
self._connection.update, |
|
|
|
self._connection.update, |
|
|
|
status) |
|
|
|
status=status, |
|
|
|
# TODO: We are not dealing with replies here yet |
|
|
|
reply_to=self._reply_message_id) |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def _clear_text(self, widget): |
|
|
|
def _clear_text(self, widget): |
|
|
@ -664,8 +676,8 @@ class Interface(object): |
|
|
|
self._update_text.get_buffer().set_text('') |
|
|
|
self._update_text.get_buffer().set_text('') |
|
|
|
|
|
|
|
|
|
|
|
self._delete_iter = None |
|
|
|
self._delete_iter = None |
|
|
|
self._reply_message_id = None |
|
|
|
self._clear_reply() |
|
|
|
self._repost_message_id = None |
|
|
|
self._clear_repost() |
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
@ -850,6 +862,8 @@ class Interface(object): |
|
|
|
self._update_sensitivity(True) |
|
|
|
self._update_sensitivity(True) |
|
|
|
self._clear_text(None) |
|
|
|
self._clear_text(None) |
|
|
|
self._update_statusbar('Your status was updated.') |
|
|
|
self._update_statusbar('Your status was updated.') |
|
|
|
|
|
|
|
self._clear_reply() |
|
|
|
|
|
|
|
self._clear_repost() |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def _exception_update_status(self, widget, exception): |
|
|
|
def _exception_update_status(self, widget, exception): |
|
|
|