Browse Source

Also clear the icon and count when clearing the list

master
Julio Biason 15 years ago
parent
commit
c12685485c
  1. 3
      mitterlib/ui/ui_pygtk.py

3
mitterlib/ui/ui_pygtk.py

@ -801,6 +801,9 @@ class Interface(object):
def _clear_posts(self, widget, user_data=None): def _clear_posts(self, widget, user_data=None):
"""Clear the list of posts from the grid.""" """Clear the list of posts from the grid."""
self._grid.get_model().clear() self._grid.get_model().clear()
self._new_message_count = 0
if self._statusicon:
self._statusicon.set_from_file(find_image('mitter.png'))
return return
def _delete_message(self, widget, user_data=None): def _delete_message(self, widget, user_data=None):

Loading…
Cancel
Save