summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-12 21:28:58 -0500
committerPietro Gagliardi <[email protected]>2014-02-12 21:28:58 -0500
commit8e2f3b136e041705098f9f8d11941c33f785258a (patch)
tree312da7cb31bf0348d7517f4be98d3c22b5c04445 /main.go
parent40dc20be0d7141ccc6263b88e005c16378daa8ce (diff)
Adjusted sysData.make() to make the new window class and fixed main(). Now to fix compiler errors...
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.go b/main.go
index 273a13a..411eb36 100644
--- a/main.go
+++ b/main.go
@@ -5,8 +5,7 @@ func main() {
w := NewWindow("Main Window", 320, 240)
w.Closing = make(chan struct{})
b := NewButton("Click Me")
- w.SetControl(b)
- err := w.Open()
+ err := w.Open(b)
if err != nil {
panic(err)
}
@@ -22,6 +21,6 @@ mainloop:
}
}
}
- w.Close()
+ w.Hide()
}