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/window_darwin.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'redo/window_darwin.go') diff --git a/redo/window_darwin.go b/redo/window_darwin.go index 40c3ddf..80d1a51 100644 --- a/redo/window_darwin.go +++ b/redo/window_darwin.go @@ -18,10 +18,6 @@ type window struct { *container } -type controlParent interface { - setParent(C.id) -} - func newWindow(title string, width int, height int, control Control) *window { id := C.newWindow(C.intptr_t(width), C.intptr_t(height)) ctitle := C.CString(title) @@ -34,7 +30,7 @@ func newWindow(title string, width int, height int, control Control) *window { } C.windowSetDelegate(id, unsafe.Pointer(w)) w.child = control - w.child.setParent(C.windowContentView(w.id)) + w.child.setParent(&controlParent{C.windowContentView(w.id)}) return w } -- cgit v1.2.3