Let log windows always follow changes/new entries.

This commit is contained in:
Truls Alexander Tangstad 2006-04-22 15:41:08 +00:00
parent 23914b2d1e
commit e151e66898

View File

@ -57,6 +57,9 @@ class LogView(gtk.TreeView):
self.connect('button_press_event', self.mouse_popup_menu)
#self.connect('button_release_event', None)
# Make sure tree view displays bottom entry when entered
self.model.connect('row-changed', lambda model, path, iter : self.scroll_to_cell(path))
def set_level(self, level):
self.level = level
self.level_no = self.logger.levels.index(level)