summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-03 11:04:07 -0400
committerPietro Gagliardi <[email protected]>2014-07-03 11:04:07 -0400
commit1238936a16170757104879d9593ba9440c70e8cd (patch)
treeeade2af3e7602a986dd7144032c72a18f59c9825 /test/main.go
parentf7dedc8cb05960134234f242042a4f00d88aaf9e (diff)
Added Post() and implemented it on Windows.
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/main.go b/test/main.go
index da6a8eb..7f5d656 100644
--- a/test/main.go
+++ b/test/main.go
@@ -249,12 +249,13 @@ func areaTest() {
layout.SetStretchy(0)
w := NewWindow("Area Test", 100, 100)
w.Closing = die
+ w.Posted = func(data interface{}) {
+ timedisp.SetText(data.(string))
+ }
w.Open(layout)
go func() {
for t := range timechan {
- // TODO
- _ = t
-// timedisp.SetText(t.String())
+ Post(w, t.String())
}
}()
}