summaryrefslogtreecommitdiff
path: root/progressbar.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-12 17:31:13 -0400
committerPietro Gagliardi <[email protected]>2014-03-12 17:31:13 -0400
commit6ee8d96a6e8c1e95b8ca2ab19fcc6a3a856d50c8 (patch)
tree110c533c390b09eedeeeb45c370a42d6201b4a60 /progressbar.go
parentbf093d534c0bc64fa7da38708c05e5a632964ae7 (diff)
Added GTK+ indeterminate ProgressBars.
Diffstat (limited to 'progressbar.go')
-rw-r--r--progressbar.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/progressbar.go b/progressbar.go
index 4d16874..000996c 100644
--- a/progressbar.go
+++ b/progressbar.go
@@ -27,6 +27,7 @@ func NewProgressBar() *ProgressBar {
// If percent is in the range [0,100], the progressBar shows that much percent complete.
// If percent is -1, the ProgressBar is made indeterminate.
// Otherwise, SetProgress panics.
+// TODO what happens if you repeatedly call SetProgress(-1)?
func (p *ProgressBar) SetProgress(percent int) {
p.lock.Lock()
defer p.lock.Unlock()