Browse Source

keep the current selected line visible

master
Julio Biason 14 years ago
parent
commit
0395a05a58
  1. 2
      mitterlib/ui/helpers/gtk_messagegrid.py

2
mitterlib/ui/helpers/gtk_messagegrid.py

@ -408,7 +408,9 @@ class MessageGrid(gtk.ScrolledWindow, gobject.GObject):
# reconnect the store and re-select the previously selected line
self._grid.set_model(store)
if iter:
path = store.get_path(iter)
self._grid.get_selection().select_iter(iter)
self._grid.scroll_to_cell(path, None, False, 0, 0)
self._grid.thaw_notify()
self._grid.queue_draw()

Loading…
Cancel
Save