summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-02-01 15:23:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-03 22:30:21 +0000
commit97c405f0d7bdc765cbac3197890634c33d112f24 (patch)
tree060c88609407fb3b1cdafa86d956987b35cd6bfb
parentc72ad4fdeb76f8ff407fc11e0de3a78aac836572 (diff)
downloadbitbake-97c405f0d7bdc765cbac3197890634c33d112f24.tar.gz
bitbake/progress: add method to pulse the progress bar
When we're running a long operation with indeterminate duration it's useful to use the gtk.ProgressBar's pulse method to show that something is happening but we don't know how long it will take. (From Poky rev: fb62c54e13e875dd81e0b5220c54a7753b4d5fa2) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/crumbs/progress.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/progress.py b/lib/bb/ui/crumbs/progress.py
index 36eca3829..ce3a6c37b 100644
--- a/lib/bb/ui/crumbs/progress.py
+++ b/lib/bb/ui/crumbs/progress.py
@@ -15,3 +15,7 @@ class ProgressBar(gtk.Dialog):
def update(self, x, y):
self.progress.set_fraction(float(x)/float(y))
self.progress.set_text("%2d %%" % (x*100/y))
+
+ def pulse(self):
+ self.progress.set_text("Loading...")
+ self.progress.pulse()