From e151e66898a976d39a549e04f6db5382749bfd0c Mon Sep 17 00:00:00 2001 From: tangstad Date: Sat, 22 Apr 2006 15:41:08 +0000 Subject: [PATCH] Let log windows always follow changes/new entries. --- system/logger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/logger.py b/system/logger.py index 4e12e3c..5f04fb4 100644 --- a/system/logger.py +++ b/system/logger.py @@ -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)