diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-14 10:58:16 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-14 10:58:16 -0500 |
| commit | 9a4e7bf5eb74ffcef8885f27af9482dfc467542c (patch) | |
| tree | fbab9648e487005eee0156dc99464858c5c73545 /main.go | |
| parent | 5436f8f5fab00913c7c76dc4082110aecccd2dc9 (diff) | |
Changed Stack so that controls are added only at creation time.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |
