From 79be794ddb2182a7ce120e98df6cd01f1a188e0a Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 15 Dec 2009 15:46:01 +0100 Subject: GUI: autoscroll log window --- src/Gui/CCMainWindow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index e429908..8544b24 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -167,7 +167,10 @@ class MainWindow(): self.wTree.get_widget("lStatus").set_text(message) buff = gtk.TextBuffer() buff.set_text(self.updates) - self.wTree.get_widget("tvUpdates").set_buffer(buff) + end = buff.get_insert() + tvUpdates = self.wTree.get_widget("tvUpdates") + tvUpdates.set_buffer(buff) + tvUpdates.scroll_mark_onscreen(end) # call to update the progressbar def progress_update_cb(self, *args): -- cgit