summaryrefslogtreecommitdiff
path: root/redo/controls_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/controls_darwin.go')
-rw-r--r--redo/controls_darwin.go8
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() {