diff --git a/mitterlib/ui/ui_pygtk.py b/mitterlib/ui/ui_pygtk.py index 01d7315..d9f5919 100644 --- a/mitterlib/ui/ui_pygtk.py +++ b/mitterlib/ui/ui_pygtk.py @@ -683,13 +683,8 @@ class Interface(object): retrieved.""" _log.debug('%d new tweets', len(results)) - (grid, counter) = self._grids[0] - store = grid.get_model() - self._fill_store(store, results) - grid.queue_draw() - - self._new_message_count += len(results) - self._message_count_updated() + grid = self._main_tabs.get_nth_page(0) + grid.update(results) # now get replies self._update_statusbar(_('Retrieving replies...')) @@ -720,13 +715,8 @@ class Interface(object): """Called after we retrieve the replies.""" _log.debug("%d new replies", len(results)) - (grid, counter) = self._grids[1] - store = grid.get_model() - self._fill_store(store, results) - grid.queue_draw() - - self._new_replies_count += len(results) - self._message_count_updated() + grid = self._main_tabs.get_nth_page(1) + grid.update(results) # once our update went fine, we can queue the next one. This avoids # any problems if case there is an exception.