From 85fb097ab97603ff2539ec7a3abd6ae8b96a44cb Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 2 Aug 2014 08:04:44 -0400 Subject: Wrote Control.preferredSize() (including Tab.preferredSize()) on Mac OS X. --- redo/control_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redo/control_darwin.go') diff --git a/redo/control_darwin.go b/redo/control_darwin.go index 8248fd9..bb24337 100644 --- a/redo/control_darwin.go +++ b/redo/control_darwin.go @@ -30,8 +30,8 @@ func newControl(id C.id) *controlbase { } c.fallocate = baseallocate(c) c.fpreferredSize = func(d *sizing) (int, int) { - // TODO - return 64, 32 + s := C.controlPrefSize(c.id) + return int(s.width), int(s.height) } c.fcommitResize = func(a *allocation, d *sizing) { //TODO -- cgit v1.2.3