summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-11-25 15:56:07 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-12-07 13:53:06 +0000
commit5526a64f4e88232284fcaae37cd19bd35207fd33 (patch)
tree8c17a0910b8a6383240a1e723b795f6f7699ce72 /bitbake
parent48e27575eb2a2b1ed066cbe2830575a559912e34 (diff)
downloadopenembedded-core-5526a64f4e88232284fcaae37cd19bd35207fd33.tar.gz
openembedded-core-5526a64f4e88232284fcaae37cd19bd35207fd33.tar.bz2
openembedded-core-5526a64f4e88232284fcaae37cd19bd35207fd33.zip
bitbake/goggle: add a ProgressBar for parse progress
Construct a ProgressBar and pass it to the RunningBuild.handle_event() so that goggle users are notified of metadata parsing progress. UI's with status make users less nervous Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/goggle.py9
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
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()