All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hob: stop build without percentage shown
@ 2012-10-12 14:51 Andrei Dinu
  2012-10-24 20:10 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei Dinu @ 2012-10-12 14:51 UTC (permalink / raw)
  To: bitbake-devel

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>
---
 bitbake/lib/bb/ui/crumbs/builder.py     |    2 +-
 bitbake/lib/bb/ui/crumbs/progressbar.py |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bitbake/lib/bb/ui/crumbs/builder.py b/bitbake/lib/bb/ui/crumbs/builder.py
index 6ddc5b6..2a41657 100755
--- a/bitbake/lib/bb/ui/crumbs/builder.py
+++ b/bitbake/lib/bb/ui/crumbs/builder.py
@@ -1480,7 +1480,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/bitbake/lib/bb/ui/crumbs/progressbar.py b/bitbake/lib/bb/ui/crumbs/progressbar.py
index f75818a..3e2c660 100644
--- a/bitbake/lib/bb/ui/crumbs/progressbar.py
+++ b/bitbake/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("")
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hob: stop build without percentage shown
  2012-10-12 14:51 [PATCH] hob: stop build without percentage shown Andrei Dinu
@ 2012-10-24 20:10 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-10-24 20:10 UTC (permalink / raw)
  To: Andrei Dinu; +Cc: bitbake-devel

On Fri, 2012-10-12 at 17:51 +0300, Andrei Dinu wrote:
> 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>

Merged to master, thanks.

Richard




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-24 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 14:51 [PATCH] hob: stop build without percentage shown Andrei Dinu
2012-10-24 20:10 ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.