summaryrefslogtreecommitdiffstats
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)
downloadpoky-5526a64f4e88232284fcaae37cd19bd35207fd33.tar.gz
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
22import gtk 22import gtk
23import xmlrpclib 23import xmlrpclib
24from bb.ui.crumbs.runningbuild import RunningBuildTreeView, RunningBuild 24from bb.ui.crumbs.runningbuild import RunningBuildTreeView, RunningBuild
25from bb.ui.crumbs.progress import ProgressBar
25 26
26def event_handle_idle_func (eventHandler, build): 27def 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()