diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-29 23:01:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-29 23:01:28 -0400 |
| commit | 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea (patch) | |
| tree | da3b816d12434e7c5268c6e873dd60f5e8534257 /redo/controls_darwin.go | |
| parent | f4bb7360d4060d9c62c30d6b5508683a4fb6c472 (diff) | |
Changed Control.setParent() to take the same argument type on all platforms; this is needed for re-adding Stack and Grid. This argument type is defined by each platform.
Diffstat (limited to 'redo/controls_darwin.go')
| -rw-r--r-- | redo/controls_darwin.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/redo/controls_darwin.go b/redo/controls_darwin.go index d6968fc..78e9138 100644 --- a/redo/controls_darwin.go +++ b/redo/controls_darwin.go @@ -21,9 +21,13 @@ func newWidget(id C.id) *widgetbase { // these few methods are embedded by all the various Controls since they all will do the same thing -func (w *widgetbase) setParent(parent C.id) { +type controlParent struct { + id C.id +} + +func (w *widgetbase) setParent(parent *controlParent) { // redrawing the new window handled by C.parent() - C.parent(w.id, parent) + C.parent(w.id, parent.id) } func (w *widgetbase) containerShow() { |
