diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-02 08:04:44 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-02 08:04:44 -0400 |
| commit | 85fb097ab97603ff2539ec7a3abd6ae8b96a44cb (patch) | |
| tree | 7b586ebffdd7a03ce504c4b687a23ddec2bd13aa /redo/control_darwin.go | |
| parent | 37cf0a20c06d457755f209d3fc393f9593c534af (diff) | |
Wrote Control.preferredSize() (including Tab.preferredSize()) on Mac OS X.
Diffstat (limited to 'redo/control_darwin.go')
| -rw-r--r-- | redo/control_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
