summaryrefslogtreecommitdiff
path: root/group_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-28 00:13:18 -0400
committerPietro Gagliardi <[email protected]>2014-10-28 00:13:18 -0400
commit73fcb4e22d4f90e61165f5cdb438f3a4b224ad4c (patch)
treebfc46d1f8cd5c69b47c0ec391c404ca4d9c54aaa /group_darwin.go
parent6b27bd732743948e0002abe4d452212fad8ac045 (diff)
Fixed Mac OS X issues.
Diffstat (limited to 'group_darwin.go')
-rw-r--r--group_darwin.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/group_darwin.go b/group_darwin.go
index eb3055c..aeca48a 100644
--- a/group_darwin.go
+++ b/group_darwin.go
@@ -18,11 +18,10 @@ type group struct {
func newGroup(text string, control Control) Group {
g := new(group)
- g.container = newContainer()
- g.controlSingleObject = newControlSingleObject(C.newGroup(g.container.id))
g.child = control
+ g.container = newContainer(g.child.resize)
g.child.setParent(g.container.parent())
- g.container.resize = g.child.resize
+ g.controlSingleObject = newControlSingleObject(C.newGroup(g.container.id))
g.SetText(text)
return g
}