summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-14 10:58:16 -0500
committerPietro Gagliardi <[email protected]>2014-02-14 10:58:16 -0500
commit9a4e7bf5eb74ffcef8885f27af9482dfc467542c (patch)
treefbab9648e487005eee0156dc99464858c5c73545 /main.go
parent5436f8f5fab00913c7c76dc4082110aecccd2dc9 (diff)
Changed Stack so that controls are added only at creation time.
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)