diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2012-10-12 17:51:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-24 21:07:16 +0100 |
commit | 7ab5775fceda1055b86bdc3313fc4bf928bf5155 (patch) | |
tree | 2e3f70fe9948db29d5f03b43067cb1b0b452ab53 | |
parent | 0a755026661a18ae386eb64b807e9e9e8f0dfe4c (diff) | |
download | bitbake-7ab5775fceda1055b86bdc3313fc4bf928bf5155.tar.gz |
hob: stop build without percentage shown
added a method in progressbar.py that doesn't update the
percentage in the progress bar shown in hob.
the call of the method is done in builder.py.
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | lib/bb/ui/crumbs/builder.py | 2 | ||||
-rw-r--r-- | lib/bb/ui/crumbs/progressbar.py | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/builder.py b/lib/bb/ui/crumbs/builder.py index d417e1b21..b1ddf12cb 100755 --- a/lib/bb/ui/crumbs/builder.py +++ b/lib/bb/ui/crumbs/builder.py @@ -1492,7 +1492,7 @@ class Builder(gtk.Window): if response != gtk.RESPONSE_CANCEL: self.stopping = True if response == gtk.RESPONSE_OK: - self.build_details_page.progress_bar.set_title("Stopping the build...") + self.build_details_page.progress_bar.set_stop_title("Stopping the build....") self.build_details_page.progress_bar.set_rcstyle("stop") self.cancel_build_sync() elif response == gtk.RESPONSE_YES: diff --git a/lib/bb/ui/crumbs/progressbar.py b/lib/bb/ui/crumbs/progressbar.py index f75818ac7..3e2c660e4 100644 --- a/lib/bb/ui/crumbs/progressbar.py +++ b/lib/bb/ui/crumbs/progressbar.py @@ -43,6 +43,11 @@ class HobProgressBar (gtk.ProgressBar): text += " %.0f%%" % self.percentage self.set_text(text) + def set_stop_title(self, text=None): + if not text: + text = "" + self.set_text(text) + def reset(self): self.set_fraction(0) self.set_text("") |