From 73fcb4e22d4f90e61165f5cdb438f3a4b224ad4c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 28 Oct 2014 00:13:18 -0400 Subject: Fixed Mac OS X issues. --- container_darwin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'container_darwin.go') 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 } -- cgit v1.2.3