summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-12-06 15:34:50 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-07 12:53:05 +0000
commit48e27575eb2a2b1ed066cbe2830575a559912e34 (patch)
tree1e7c45c295b9dd14c5fe2e127b6cd15138fb37f6
parentb9617bf6e15fe75f850fe5644eea4b7f04eed792 (diff)
downloadopenembedded-core-48e27575eb2a2b1ed066cbe2830575a559912e34.tar.gz
openembedded-core-48e27575eb2a2b1ed066cbe2830575a559912e34.tar.bz2
openembedded-core-48e27575eb2a2b1ed066cbe2830575a559912e34.zip
bitbake/goggle: automatically show most recently added message
It seems likely that the user would want to view the most recently emitted messages so this patch sets the message dislay treeview to scroll to any newly added rows. Signed-off-by: Joshua Lock <josh@linux.intel.com>
-rw-r--r--bitbake/lib/bb/ui/goggle.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/goggle.py b/bitbake/lib/bb/ui/goggle.py
index d29d57609f..18fbadc975 100644
--- a/bitbake/lib/bb/ui/goggle.py
+++ b/bitbake/lib/bb/ui/goggle.py
@@ -33,6 +33,9 @@ def event_handle_idle_func (eventHandler, build):
return True
+def scroll_tv_cb (model, path, iter, view):
+ view.scroll_to_cell (path)
+
class MainWindow (gtk.Window):
def __init__ (self):
gtk.Window.__init__ (self, gtk.WINDOW_TOPLEVEL)
@@ -55,6 +58,7 @@ def init (server, eventHandler):
# Create the object for the current build
running_build = RunningBuild ()
window.cur_build_tv.set_model (running_build.model)
+ running_build.model.connect("row-inserted", scroll_tv_cb, window.cur_build_tv)
try:
cmdline = server.runCommand(["getCmdLineAction"])
print(cmdline)