Browse Source

Move to the first cell on new messages

master
Julio Biason 15 years ago
parent
commit
a7eba146dd
  1. 5
      mitterlib/ui/ui_pygtk.py

5
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

Loading…
Cancel
Save