diff options
-rw-r--r-- | bitbake/lib/bb/ui/goggle.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/goggle.py b/bitbake/lib/bb/ui/goggle.py index 18fbadc975..858ca14c45 100644 --- a/bitbake/lib/bb/ui/goggle.py +++ b/bitbake/lib/bb/ui/goggle.py | |||
@@ -22,13 +22,14 @@ import gobject | |||
22 | import gtk | 22 | import gtk |
23 | import xmlrpclib | 23 | import xmlrpclib |
24 | from bb.ui.crumbs.runningbuild import RunningBuildTreeView, RunningBuild | 24 | from bb.ui.crumbs.runningbuild import RunningBuildTreeView, RunningBuild |
25 | from bb.ui.crumbs.progress import ProgressBar | ||
25 | 26 | ||
26 | def event_handle_idle_func (eventHandler, build): | 27 | def event_handle_idle_func (eventHandler, build, pbar): |
27 | 28 | ||
28 | # Consume as many messages as we can in the time available to us | 29 | # Consume as many messages as we can in the time available to us |
29 | event = eventHandler.getEvent() | 30 | event = eventHandler.getEvent() |
30 | while event: | 31 | while event: |
31 | build.handle_event (event) | 32 | build.handle_event (event, pbar) |
32 | event = eventHandler.getEvent() | 33 | event = eventHandler.getEvent() |
33 | 34 | ||
34 | return True | 35 | return True |
@@ -54,6 +55,7 @@ def init (server, eventHandler): | |||
54 | 55 | ||
55 | window = MainWindow () | 56 | window = MainWindow () |
56 | window.show_all () | 57 | window.show_all () |
58 | pbar = ProgressBar(window) | ||
57 | 59 | ||
58 | # Create the object for the current build | 60 | # Create the object for the current build |
59 | running_build = RunningBuild () | 61 | running_build = RunningBuild () |
@@ -77,6 +79,7 @@ def init (server, eventHandler): | |||
77 | gobject.timeout_add (200, | 79 | gobject.timeout_add (200, |
78 | event_handle_idle_func, | 80 | event_handle_idle_func, |
79 | eventHandler, | 81 | eventHandler, |
80 | running_build) | 82 | running_build, |
83 | pbar) | ||
81 | 84 | ||
82 | gtk.main() | 85 | gtk.main() |