Browse Source

Replies working

master
Julio Biason 15 years ago
parent
commit
5572f37bd1
  1. 22
      mitterlib/ui/ui_pygtk.py

22
mitterlib/ui/ui_pygtk.py

@ -626,6 +626,18 @@ class Interface(object):
self._refresh, None)
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
# ------------------------------------------------------------
@ -655,8 +667,8 @@ class Interface(object):
self._threads.add_work(self._post_update_status,
self._exception_update_status,
self._connection.update,
status)
# TODO: We are not dealing with replies here yet
status=status,
reply_to=self._reply_message_id)
return
def _clear_text(self, widget):
@ -664,8 +676,8 @@ class Interface(object):
self._update_text.get_buffer().set_text('')
self._delete_iter = None
self._reply_message_id = None
self._repost_message_id = None
self._clear_reply()
self._clear_repost()
return
@ -850,6 +862,8 @@ class Interface(object):
self._update_sensitivity(True)
self._clear_text(None)
self._update_statusbar('Your status was updated.')
self._clear_reply()
self._clear_repost()
return
def _exception_update_status(self, widget, exception):

Loading…
Cancel
Save