diff options
Diffstat (limited to 'bitbake')
-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 18fbadc97..858ca14c4 100644 --- a/bitbake/lib/bb/ui/goggle.py +++ b/bitbake/lib/bb/ui/goggle.py @@ -22,13 +22,14 @@ import gobject import gtk import xmlrpclib from bb.ui.crumbs.runningbuild import RunningBuildTreeView, RunningBuild +from bb.ui.crumbs.progress import ProgressBar -def event_handle_idle_func (eventHandler, build): +def event_handle_idle_func (eventHandler, build, pbar): # Consume as many messages as we can in the time available to us event = eventHandler.getEvent() while event: - build.handle_event (event) + build.handle_event (event, pbar) event = eventHandler.getEvent() return True @@ -54,6 +55,7 @@ def init (server, eventHandler): window = MainWindow () window.show_all () + pbar = ProgressBar(window) # Create the object for the current build running_build = RunningBuild () @@ -77,6 +79,7 @@ def init (server, eventHandler): gobject.timeout_add (200, event_handle_idle_func, eventHandler, - running_build) + running_build, + pbar) gtk.main() |