summaryrefslogtreecommitdiff
path: root/redo/control_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/control_darwin.go')
-rw-r--r--redo/control_darwin.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/redo/control_darwin.go b/redo/control_darwin.go
index f6f9312..8248fd9 100644
--- a/redo/control_darwin.go
+++ b/redo/control_darwin.go
@@ -28,16 +28,7 @@ func newControl(id C.id) *controlbase {
c.fcontainerHide = func() {
C.controlSetHidden(c.id, C.YES)
}
- c.fallocate = func(x int, y int, width int, height int, d *sizing) []*allocation {
- // TODO split into its own function
- return []*allocation{&allocation{
- x: x,
- y: y,
- width: width,
- height: height,
- this: c,
- }}
- }
+ c.fallocate = baseallocate(c)
c.fpreferredSize = func(d *sizing) (int, int) {
// TODO
return 64, 32