diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-30 12:34:54 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-30 12:34:54 -0400 |
| commit | c0473db73c11927144f79bb69d01a290753b5de0 (patch) | |
| tree | 4e56aacdf5aa9129f77ebd47553a4cecb6207748 /redo/containerctrls_darwin.go | |
| parent | 4740f72efb09042abc3b0577044e720bcc36dcb2 (diff) | |
Ported the new Control setup to Mac OS X.
Diffstat (limited to 'redo/containerctrls_darwin.go')
| -rw-r--r-- | redo/containerctrls_darwin.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/redo/containerctrls_darwin.go b/redo/containerctrls_darwin.go index 0e0221a..7249134 100644 --- a/redo/containerctrls_darwin.go +++ b/redo/containerctrls_darwin.go @@ -10,7 +10,7 @@ import ( import "C" type tab struct { - *widgetbase + *controlbase containers []*container } @@ -18,7 +18,7 @@ type tab struct { func newTab() Tab { t := new(tab) id := C.newTab(unsafe.Pointer(t)) - t.widgetbase = newWidget(id) + t.controlbase = newControl(id) return t } @@ -33,10 +33,7 @@ func (t *tab) Append(name string, control Control) { c.child.setParent(&controlParent{tabview}) } -func (t *tab) allocate(x int, y int, width int, height int, d *sizing) []*allocation { - // only prepared the tabbed control; its children will be reallocated when that one is resized - return t.widgetbase.allocate(x, y, width, height, d) -} +// no need to override Control.allocate() as only prepared the tabbed control; its children will be reallocated when that one is resized //export tabResized func tabResized(data unsafe.Pointer, width C.intptr_t, height C.intptr_t) { |
