diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-28 00:13:18 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-28 00:13:18 -0400 |
| commit | 73fcb4e22d4f90e61165f5cdb438f3a4b224ad4c (patch) | |
| tree | bfc46d1f8cd5c69b47c0ec391c404ca4d9c54aaa /container_darwin.go | |
| parent | 6b27bd732743948e0002abe4d452212fad8ac045 (diff) | |
Fixed Mac OS X issues.
Diffstat (limited to 'container_darwin.go')
| -rw-r--r-- | container_darwin.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/container_darwin.go b/container_darwin.go index 539ed57..5cc2b1c 100644 --- a/container_darwin.go +++ b/container_darwin.go @@ -25,8 +25,10 @@ type sizing struct { neighborAlign C.struct_xalignment } -func newContainer() *container { +// containerResized() gets called early so we have to do this in the constructor +func newContainer(resize func(x int, y int, width int, height int, d *sizing)) *container { c := new(container) + c.resize = resize c.id = C.newContainerView(unsafe.Pointer(c)) return c } |
