[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
- [Commit-gnuradio] [gnuradio] branch maint updated (411e687 -> 30c7c0e), git, 2014/01/27
- [Commit-gnuradio] [gnuradio] 06/07: changed URL from old svn / utah.edu to gnuradio.org doxygen, git, 2014/01/27
- [Commit-gnuradio] [gnuradio] 07/07: Changing search order for qwt, git, 2014/01/27
- [Commit-gnuradio] [gnuradio] 01/07: grc: fix report window auto-scrolling,
git <=
- [Commit-gnuradio] [gnuradio] 05/07: uhd: Fix possible freeze-up when using lock/unlock (Solution by Johannes Demel), git, 2014/01/27
- [Commit-gnuradio] [gnuradio] 03/07: Merge remote-tracking branch 'gnuradio-wg-grc/grc_report_window_autoscroll_fix' into maint, git, 2014/01/27
- [Commit-gnuradio] [gnuradio] 02/07: docs: Netwrok -> Network (satisfy OCD), git, 2014/01/27
- [Commit-gnuradio] [gnuradio] 04/07: Merge remote-tracking branch 'martin/docs-fix2' into maint, git, 2014/01/27