summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index c6f0dda..09c0fe1 100644
--- a/main.go
+++ b/main.go
@@ -1,6 +1,10 @@
// 11 february 2014
package main
+import (
+ "fmt"
+)
+
func main() {
w := NewWindow("Main Window", 320, 240)
w.Closing = make(chan struct{})
@@ -23,7 +27,7 @@ mainloop:
case <-w.Closing:
break mainloop
case <-b.Clicked:
- err := w.SetTitle("Button Clicked")
+ err := w.SetTitle(fmt.Sprintf("Check State: %v", c.Checked()))
if err != nil {
panic(err)
}