summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-12 18:14:37 -0500
committerPietro Gagliardi <[email protected]>2014-02-12 18:14:37 -0500
commita9ff38894408e0a34da4742fc2b1aea0bb5ef60b (patch)
tree2c4e58eb079cdd59537216943fc97fdd4fbd7a2d /main.go
parent0a9f40812950ad00239e93141a37183666d5f3eb (diff)
Added Window.SetTitle(). Also oops, forgot to mark the window as created.
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index 09fae17..273a13a 100644
--- a/main.go
+++ b/main.go
@@ -16,7 +16,10 @@ mainloop:
case <-w.Closing:
break mainloop
case <-b.Clicked:
- println("clicked")
+ err := w.SetTitle("Button Clicked")
+ if err != nil {
+ panic(err)
+ }
}
}
w.Close()