summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()
}