From c12685485c92f6d996347171ba33dd8e3686182d Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 16 Dec 2009 09:20:01 -0200 Subject: [PATCH] Also clear the icon and count when clearing the list --- mitterlib/ui/ui_pygtk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mitterlib/ui/ui_pygtk.py b/mitterlib/ui/ui_pygtk.py index 0779126..a9c9e95 100644 --- a/mitterlib/ui/ui_pygtk.py +++ b/mitterlib/ui/ui_pygtk.py @@ -801,6 +801,9 @@ class Interface(object): def _clear_posts(self, widget, user_data=None): """Clear the list of posts from the grid.""" self._grid.get_model().clear() + self._new_message_count = 0 + if self._statusicon: + self._statusicon.set_from_file(find_image('mitter.png')) return def _delete_message(self, widget, user_data=None):