|
|
@ -595,16 +595,15 @@ class Interface(object): |
|
|
|
store.sort_column_changed() |
|
|
|
store.sort_column_changed() |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def _show_update_box(self): |
|
|
|
|
|
|
|
"""Enables the update box.""" |
|
|
|
|
|
|
|
self._update_field.show() |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------ |
|
|
|
# ------------------------------------------------------------ |
|
|
|
# Widget callback functions |
|
|
|
# Widget callback functions |
|
|
|
# ------------------------------------------------------------ |
|
|
|
# ------------------------------------------------------------ |
|
|
|
def _update_status(self, widget): |
|
|
|
def _update_status(self, widget): |
|
|
|
"""Update your status.""" |
|
|
|
"""Update your status.""" |
|
|
|
|
|
|
|
if not self._update_field.get_property('visible'): |
|
|
|
|
|
|
|
self._update_field.show() |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
status = self._update_field.text.strip() |
|
|
|
status = self._update_field.text.strip() |
|
|
|
if not status: |
|
|
|
if not status: |
|
|
|
self._update_field.hide() |
|
|
|
self._update_field.hide() |
|
|
@ -784,11 +783,9 @@ class Interface(object): |
|
|
|
(grid, _) = self._grids[self._main_tabs.get_current_page()] |
|
|
|
(grid, _) = self._grids[self._main_tabs.get_current_page()] |
|
|
|
(model, iter) = grid.get_selection().get_selected() |
|
|
|
(model, iter) = grid.get_selection().get_selected() |
|
|
|
message = model.get_value(iter, 0) |
|
|
|
message = model.get_value(iter, 0) |
|
|
|
self._update_text.get_buffer().set_text( |
|
|
|
self._update_field.text = self._connection.reply_prefix(message) |
|
|
|
self._connection.reply_prefix(message)) |
|
|
|
|
|
|
|
self._reply_message_id = message |
|
|
|
self._reply_message_id = message |
|
|
|
self._show_update_box() |
|
|
|
self._update_field.show(message.author) |
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
def _repost_message(self, widget, user_data=None): |
|
|
|
def _repost_message(self, widget, user_data=None): |
|
|
|