From 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 29 Jul 2014 23:01:28 -0400 Subject: 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. --- redo/controls_darwin.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'redo/controls_darwin.go') 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() { -- cgit v1.2.3