commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/07: grc: fix report window auto-scrollin


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/07: grc: fix report window auto-scrolling
Date: Mon, 27 Jan 2014 20:10:35 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit dbcd4d39dbf80b9cb980478130ad9061e20dbb5b
Author: Sebastian Koslowski <address@hidden>
Date:   Sat Jan 18 22:43:16 2014 +0100

    grc: fix report window auto-scrolling
---
 grc/gui/MainWindow.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/grc/gui/MainWindow.py b/grc/gui/MainWindow.py
index 1413969..3a68ed8 100644
--- a/grc/gui/MainWindow.py
+++ b/grc/gui/MainWindow.py
@@ -100,7 +100,7 @@ class MainWindow(gtk.Window):
         #house the reports in a scrolled window
         self.reports_scrolled_window = gtk.ScrolledWindow()
         self.reports_scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, 
gtk.POLICY_AUTOMATIC)
-        self.reports_scrolled_window.add_with_viewport(self.text_display)
+        self.reports_scrolled_window.add(self.text_display)
         self.reports_scrolled_window.set_size_request(-1, 
DEFAULT_REPORTS_WINDOW_WIDTH)
         self.flow_graph_vpaned.pack2(self.reports_scrolled_window, False) 
#dont allow resize
         #load preferences and show the main window
@@ -153,9 +153,7 @@ class MainWindow(gtk.Window):
             line: the new text
         """
         self.text_display.insert(line)
-        vadj = self.reports_scrolled_window.get_vadjustment()
-        vadj.value = vadj.upper - vadj.page_size
-        vadj.changed()
+        
self.text_display.scroll_mark_onscreen(self.text_display.get_buffer().get_insert())
 
     ############################################################
     # Pages: create and close



reply via email to

[Prev in Thread] Current Thread [Next in Thread]