summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-11-04 08:48:36 -0500
committerPietro Gagliardi <[email protected]>2014-11-04 08:48:36 -0500
commit47600ec08712b6bebeea65270be7067f7bc56882 (patch)
tree66ffbf7d77803fd203734772678de60638fb043f /zz_test.go
parent4333a1221bf10979852754198b765f5697fe3de4 (diff)
Added ProgressBar and implemented it on GTK+.
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/zz_test.go b/zz_test.go
index bf11488..bc2865f 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -150,11 +150,11 @@ func (tw *testwin) addfe() {
tw.festack.SetStretchy(4)
tw.festack.SetStretchy(6)
sb := NewSpinbox(0, 100)
- sl := NewLabel("")
+ sp := NewProgressBar()
sb.OnChanged(func() {
- sl.SetText(fmt.Sprintf("%d", sb.Value()))
+ sp.SetPercent(sb.Value())
})
- tw.festack2 = newVerticalStack(sb, sl, Space(), Space(), NewTextbox())
+ tw.festack2 = newVerticalStack(sb, sp, Space(), Space(), NewTextbox())
tw.festack2.SetStretchy(3)
tw.festack2.SetStretchy(4)
tw.festack = newHorizontalStack(tw.festack, tw.festack2)