summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-21 21:07:14 -0400
committerPietro Gagliardi <[email protected]>2014-07-21 21:07:14 -0400
commitd57d2aa2de674039938080d78d9addf53dd6f3e0 (patch)
tree24f387ba6af2e0655806f632d1af7fa4265cdf22 /redo/zz_test.go
parent54c999bc42acccc5d0ef69a6a6d9d607369debf9 (diff)
Added Checkbox on the GTK+ backend, added a checkbox to the test program, and fixed a small error in the GTK+ widgetbase.parent() that kept the new widget hidden.
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
index 1ea1276..f71fe5f 100644
--- a/redo/zz_test.go
+++ b/redo/zz_test.go
@@ -5,6 +5,7 @@ package ui
// This file is called zz_test.go to keep it separate from the other files in this package (and because go test won't accept just test.go)
import (
+ "fmt"
"flag"
"testing"
)
@@ -39,6 +40,12 @@ func init() {
w.Close()
Stop()
done <- struct{}{}
+ } else {
+ c := NewCheckbox("You Should Now See Me Instead")
+ w.SetControl(c)
+ c.OnClicked(func() {
+ w.SetTitle(fmt.Sprint(c.Checked()))
+ })
}
})
w.Show()