From 9a4e7bf5eb74ffcef8885f27af9482dfc467542c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 14 Feb 2014 10:58:16 -0500 Subject: Changed Stack so that controls are added only at creation time. --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main.go') 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) -- cgit v1.2.3