summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/crumbs/builddetailspage.py
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-03-24 00:05:13 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-25 12:13:58 +0100
commit02d3451b2e0744204a1280f9effe9fd862bb4faf (patch)
tree525e95ad7b2256430cd5c876f513c6a713da3568 /lib/bb/ui/crumbs/builddetailspage.py
parentc57a45c64a17f1b9dd89743692c3da130ffd38f4 (diff)
downloadbitbake-02d3451b2e0744204a1280f9effe9fd862bb4faf.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] Signed-off-by: Shane Wang <shane.wang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/crumbs/builddetailspage.py')
-rwxr-xr-xlib/bb/ui/crumbs/builddetailspage.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/bb/ui/crumbs/builddetailspage.py b/lib/bb/ui/crumbs/builddetailspage.py
index 59d552547..c2f980fe7 100755
--- a/lib/bb/ui/crumbs/builddetailspage.py
+++ b/lib/bb/ui/crumbs/builddetailspage.py
@@ -46,12 +46,17 @@ class BuildDetailsPage (HobPage):
# create visual elements
self.vbox = gtk.VBox(False, 12)
- self.progress_box = gtk.HBox(False, 6)
+ self.progress_box = gtk.VBox(False, 12)
+ self.task_status = gtk.Label()
+ self.task_status.set_alignment(0.0, 0.5)
+ self.progress_box.pack_start(self.task_status, expand=False, fill=False)
+ self.progress_hbox = gtk.HBox(False, 6)
+ self.progress_box.pack_end(self.progress_hbox, expand=True, fill=True)
self.progress_bar = HobProgressBar()
- self.progress_box.pack_start(self.progress_bar, expand=True, fill=True)
+ self.progress_hbox.pack_start(self.progress_bar, expand=True, fill=True)
self.stop_button = HobAltButton("Stop")
self.stop_button.connect("clicked", self.stop_button_clicked_cb)
- self.progress_box.pack_end(self.stop_button, expand=False, fill=False)
+ self.progress_hbox.pack_end(self.stop_button, expand=False, fill=False)
self.notebook = HobNotebook()
self.config_tv = BuildConfigurationTreeView()
@@ -84,6 +89,12 @@ class BuildDetailsPage (HobPage):
self.back_button.connect("clicked", self.back_button_clicked_cb)
self.button_box.pack_start(self.back_button, expand=False, fill=False)
+ def update_build_status(self, tsk_msg):
+ self.task_status.set_markup(tsk_msg)
+
+ def reset_build_status(self):
+ self.task_status.set_markup("")
+
def show_issues(self):
self.num_of_issues += 1
self.notebook.show_indicator_icon("Issues", self.num_of_issues)