diff options
author | Shane Wang <shane.wang@intel.com> | 2012-03-24 00:05:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-25 12:23:34 +0100 |
commit | a80fc637def4d9568ceb79f7f4b40e0e15aa162b (patch) | |
tree | 7fc77ca216021d0771640136879b6de65253c6aa /bitbake/lib/bb/ui/crumbs/runningbuild.py | |
parent | fb7eb75f33ba27917624ffe65d352247f0e71069 (diff) | |
download | poky-a80fc637def4d9568ceb79f7f4b40e0e15aa162b.tar.gz |
Hob: add build status labels in the build details screen to make it more close to the visual design
This patch is to add build status (incl. "Running task XX of XX: XXXXXX") in the build details screen,
in order to provide clear information about task in progress and make the GUI close to the visual design.
[Yocto #2098]
(Bitbake rev: 02d3451b2e0744204a1280f9effe9fd862bb4faf)
Signed-off-by: Shane Wang <shane.wang@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 | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index f202a9098e..0f58e4e678 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -70,24 +70,24 @@ class RunningBuildModel (gtk.TreeStore): | |||
70 | 70 | ||
71 | class RunningBuild (gobject.GObject): | 71 | class RunningBuild (gobject.GObject): |
72 | __gsignals__ = { | 72 | __gsignals__ = { |
73 | 'build-started' : (gobject.SIGNAL_RUN_LAST, | 73 | 'build-started' : (gobject.SIGNAL_RUN_LAST, |
74 | gobject.TYPE_NONE, | 74 | gobject.TYPE_NONE, |
75 | ()), | 75 | ()), |
76 | 'build-succeeded' : (gobject.SIGNAL_RUN_LAST, | 76 | 'build-succeeded' : (gobject.SIGNAL_RUN_LAST, |
77 | gobject.TYPE_NONE, | 77 | gobject.TYPE_NONE, |
78 | ()), | ||
79 | 'build-failed' : (gobject.SIGNAL_RUN_LAST, | ||
80 | gobject.TYPE_NONE, | ||
81 | ()), | ||
82 | 'build-complete' : (gobject.SIGNAL_RUN_LAST, | ||
83 | gobject.TYPE_NONE, | ||
84 | ()), | ||
85 | 'task-started' : (gobject.SIGNAL_RUN_LAST, | ||
86 | gobject.TYPE_NONE, | ||
87 | (gobject.TYPE_PYOBJECT,)), | ||
88 | 'log-error' : (gobject.SIGNAL_RUN_LAST, | ||
89 | gobject.TYPE_NONE, | ||
78 | ()), | 90 | ()), |
79 | 'build-failed' : (gobject.SIGNAL_RUN_LAST, | ||
80 | gobject.TYPE_NONE, | ||
81 | ()), | ||
82 | 'build-complete' : (gobject.SIGNAL_RUN_LAST, | ||
83 | gobject.TYPE_NONE, | ||
84 | ()), | ||
85 | 'task-started' : (gobject.SIGNAL_RUN_LAST, | ||
86 | gobject.TYPE_NONE, | ||
87 | (gobject.TYPE_PYOBJECT,)), | ||
88 | 'log-error' : (gobject.SIGNAL_RUN_LAST, | ||
89 | gobject.TYPE_NONE, | ||
90 | ()), | ||
91 | } | 91 | } |
92 | pids_to_task = {} | 92 | pids_to_task = {} |
93 | tasks_to_iter = {} | 93 | tasks_to_iter = {} |
@@ -320,6 +320,7 @@ class RunningBuild (gobject.GObject): | |||
320 | message["current"] = num_of_completed | 320 | message["current"] = num_of_completed |
321 | message["total"] = event.stats.total | 321 | message["total"] = event.stats.total |
322 | message["title"] = "" | 322 | message["title"] = "" |
323 | message["task"] = event.taskstring | ||
323 | self.emit("task-started", message) | 324 | self.emit("task-started", message) |
324 | 325 | ||
325 | return | 326 | return |