diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-01 15:58:50 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-05 14:40:30 +0100 |
commit | 4cc291c007103c19779f995e852b37dbad122293 (patch) | |
tree | 3447d62ef1ba2eca08137b8e13df58f8a337a453 /bitbake/lib/bb/ui/crumbs/runningbuild.py | |
parent | 7fc9c3488f7865111ec052d1cab213d216d2b414 (diff) | |
download | poky-4cc291c007103c19779f995e852b37dbad122293.tar.gz |
hob: re-designed interaction and implementation
Highlights include:
* Atempted GNOME HIG compliance
* Simplified UI and interaction model
* Sorting and type to find in tree views
* Preferences dialog to modify local settings
* Dialog to add and remove layers
* Search in packages list
* Save/Load image recipes
The build model has been changed, hob will attempt to build all dependent
packages of an image and then use the buildFile server method to build the
created image.
(Bitbake rev: 48e64acaae4a741b9f5630f426fb4e6142755c2c)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index 70fd57effc..bdab34040c 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -47,12 +47,18 @@ class RunningBuildModel (gtk.TreeStore): | |||
47 | 47 | ||
48 | class RunningBuild (gobject.GObject): | 48 | class RunningBuild (gobject.GObject): |
49 | __gsignals__ = { | 49 | __gsignals__ = { |
50 | 'build-started' : (gobject.SIGNAL_RUN_LAST, | ||
51 | gobject.TYPE_NONE, | ||
52 | ()), | ||
50 | 'build-succeeded' : (gobject.SIGNAL_RUN_LAST, | 53 | 'build-succeeded' : (gobject.SIGNAL_RUN_LAST, |
51 | gobject.TYPE_NONE, | 54 | gobject.TYPE_NONE, |
52 | ()), | 55 | ()), |
53 | 'build-failed' : (gobject.SIGNAL_RUN_LAST, | 56 | 'build-failed' : (gobject.SIGNAL_RUN_LAST, |
54 | gobject.TYPE_NONE, | 57 | gobject.TYPE_NONE, |
55 | ()) | 58 | ()), |
59 | 'build-complete' : (gobject.SIGNAL_RUN_LAST, | ||
60 | gobject.TYPE_NONE, | ||
61 | ()) | ||
56 | } | 62 | } |
57 | pids_to_task = {} | 63 | pids_to_task = {} |
58 | tasks_to_iter = {} | 64 | tasks_to_iter = {} |
@@ -201,6 +207,7 @@ class RunningBuild (gobject.GObject): | |||
201 | 207 | ||
202 | elif isinstance(event, bb.event.BuildStarted): | 208 | elif isinstance(event, bb.event.BuildStarted): |
203 | 209 | ||
210 | self.emit("build-started") | ||
204 | self.model.prepend(None, (None, | 211 | self.model.prepend(None, (None, |
205 | None, | 212 | None, |
206 | None, | 213 | None, |
@@ -218,6 +225,9 @@ class RunningBuild (gobject.GObject): | |||
218 | Colors.OK, | 225 | Colors.OK, |
219 | 0)) | 226 | 0)) |
220 | 227 | ||
228 | # Emit a generic "build-complete" signal for things wishing to | ||
229 | # handle when the build is finished | ||
230 | self.emit("build-complete") | ||
221 | # Emit the appropriate signal depending on the number of failures | 231 | # Emit the appropriate signal depending on the number of failures |
222 | if (failures >= 1): | 232 | if (failures >= 1): |
223 | self.emit ("build-failed") | 233 | self.emit ("build-failed") |