diff --git a/mitterlib/ui/ui_pygtk.py b/mitterlib/ui/ui_pygtk.py index d696a7f..8a28162 100644 --- a/mitterlib/ui/ui_pygtk.py +++ b/mitterlib/ui/ui_pygtk.py @@ -903,6 +903,11 @@ class Interface(object): _log.debug('Data: %s', str(message)) store.prepend([message]) store.sort_column_changed() + if len(results) > 0: + # scroll to the first cell, to "show" that there are new items. + iter = self._grid.get_model().get_iter_first() + path = self._grid.get_model().get_path(iter) + self._grid.scroll_to_cell(path) self._grid.queue_draw() # once our update went fine, we can queue the next one. This avoids