diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-27 17:02:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-29 21:12:57 +0100 |
commit | 57434b40b8823969b2b4e88c327857f03722bd9e (patch) | |
tree | 4549f52f08743d1537bd9c396ad5fe11d2a1c18d /bitbake/lib/bb/ui/crumbs/progressbar.py | |
parent | 7463dd803a06666c69488e522327d0e9761a20ea (diff) | |
download | poky-57434b40b8823969b2b4e88c327857f03722bd9e.tar.gz |
lib/bb/ui/crumbs: hob progress bar should not be red when user stops build
If the user explicitly stops the build telling them the build failed is a
misnomer.
(Bitbake rev: 722f4f0e31f9debf5ad20a91da759a8c25151567)
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/progressbar.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/progressbar.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/progressbar.py b/bitbake/lib/bb/ui/crumbs/progressbar.py index 882d461711..f75818ac76 100644 --- a/bitbake/lib/bb/ui/crumbs/progressbar.py +++ b/bitbake/lib/bb/ui/crumbs/progressbar.py | |||
@@ -29,10 +29,12 @@ class HobProgressBar (gtk.ProgressBar): | |||
29 | def set_rcstyle(self, status): | 29 | def set_rcstyle(self, status): |
30 | rcstyle = gtk.RcStyle() | 30 | rcstyle = gtk.RcStyle() |
31 | rcstyle.fg[2] = gtk.gdk.Color(HobColors.BLACK) | 31 | rcstyle.fg[2] = gtk.gdk.Color(HobColors.BLACK) |
32 | if status: | 32 | if status == "stop": |
33 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.RUNNING) | 33 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.WARNING) |
34 | else: | 34 | elif status == "fail": |
35 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.ERROR) | 35 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.ERROR) |
36 | else: | ||
37 | rcstyle.bg[3] = gtk.gdk.Color(HobColors.RUNNING) | ||
36 | self.modify_style(rcstyle) | 38 | self.modify_style(rcstyle) |
37 | 39 | ||
38 | def set_title(self, text=None): | 40 | def set_title(self, text=None): |