diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/goggle.py | 4 |
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): | |||
33 | 33 | ||
34 | return True | 34 | return True |
35 | 35 | ||
36 | def scroll_tv_cb (model, path, iter, view): | ||
37 | view.scroll_to_cell (path) | ||
38 | |||
36 | class MainWindow (gtk.Window): | 39 | class MainWindow (gtk.Window): |
37 | def __init__ (self): | 40 | def __init__ (self): |
38 | gtk.Window.__init__ (self, gtk.WINDOW_TOPLEVEL) | 41 | gtk.Window.__init__ (self, gtk.WINDOW_TOPLEVEL) |
@@ -55,6 +58,7 @@ def init (server, eventHandler): | |||
55 | # Create the object for the current build | 58 | # Create the object for the current build |
56 | running_build = RunningBuild () | 59 | running_build = RunningBuild () |
57 | window.cur_build_tv.set_model (running_build.model) | 60 | window.cur_build_tv.set_model (running_build.model) |
61 | running_build.model.connect("row-inserted", scroll_tv_cb, window.cur_build_tv) | ||
58 | try: | 62 | try: |
59 | cmdline = server.runCommand(["getCmdLineAction"]) | 63 | cmdline = server.runCommand(["getCmdLineAction"]) |
60 | print(cmdline) | 64 | print(cmdline) |