summaryrefslogtreecommitdiffstats
path: root/bitbake/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:23:34 +0100
commita80fc637def4d9568ceb79f7f4b40e0e15aa162b (patch)
tree7fc77ca216021d0771640136879b6de65253c6aa /bitbake/lib/bb/ui/crumbs/builddetailspage.py
parentfb7eb75f33ba27917624ffe65d352247f0e71069 (diff)
downloadpoky-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/builddetailspage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builddetailspage.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 59d552547d..c2f980fe77 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -46,12 +46,17 @@ class BuildDetailsPage (HobPage):
46 # create visual elements 46 # create visual elements
47 self.vbox = gtk.VBox(False, 12) 47 self.vbox = gtk.VBox(False, 12)
48 48
49 self.progress_box = gtk.HBox(False, 6) 49 self.progress_box = gtk.VBox(False, 12)
50 self.task_status = gtk.Label()
51 self.task_status.set_alignment(0.0, 0.5)
52 self.progress_box.pack_start(self.task_status, expand=False, fill=False)
53 self.progress_hbox = gtk.HBox(False, 6)
54 self.progress_box.pack_end(self.progress_hbox, expand=True, fill=True)
50 self.progress_bar = HobProgressBar() 55 self.progress_bar = HobProgressBar()
51 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) 56 self.progress_hbox.pack_start(self.progress_bar, expand=True, fill=True)
52 self.stop_button = HobAltButton("Stop") 57 self.stop_button = HobAltButton("Stop")
53 self.stop_button.connect("clicked", self.stop_button_clicked_cb) 58 self.stop_button.connect("clicked", self.stop_button_clicked_cb)
54 self.progress_box.pack_end(self.stop_button, expand=False, fill=False) 59 self.progress_hbox.pack_end(self.stop_button, expand=False, fill=False)
55 60
56 self.notebook = HobNotebook() 61 self.notebook = HobNotebook()
57 self.config_tv = BuildConfigurationTreeView() 62 self.config_tv = BuildConfigurationTreeView()
@@ -84,6 +89,12 @@ class BuildDetailsPage (HobPage):
84 self.back_button.connect("clicked", self.back_button_clicked_cb) 89 self.back_button.connect("clicked", self.back_button_clicked_cb)
85 self.button_box.pack_start(self.back_button, expand=False, fill=False) 90 self.button_box.pack_start(self.back_button, expand=False, fill=False)
86 91
92 def update_build_status(self, tsk_msg):
93 self.task_status.set_markup(tsk_msg)
94
95 def reset_build_status(self):
96 self.task_status.set_markup("")
97
87 def show_issues(self): 98 def show_issues(self):
88 self.num_of_issues += 1 99 self.num_of_issues += 1
89 self.notebook.show_indicator_icon("Issues", self.num_of_issues) 100 self.notebook.show_indicator_icon("Issues", self.num_of_issues)