summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.go b/main.go
index 5745c51..beb2f0e 100644
--- a/main.go
+++ b/main.go
@@ -10,8 +10,7 @@ func main() {
w.Closing = make(chan struct{})
b := NewButton("Click Me")
c := NewCheckbox("Check Me")
- s := NewStack(Vertical)
- s.Controls = []Control{b, c}
+ s := NewStack(Vertical, b, c)
err := w.Open(s)
if err != nil {
panic(err)