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_unix.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'redo/window_unix.go') diff --git a/redo/window_unix.go b/redo/window_unix.go index dc91cbe..6a510b8 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -29,10 +29,6 @@ type window struct { *container } -type controlParent interface { - setParent(*C.GtkContainer) -} - func newWindow(title string, width int, height int, control Control) *window { widget := C.gtk_window_new(C.GTK_WINDOW_TOPLEVEL) ctitle := togstr(title) @@ -67,7 +63,7 @@ func newWindow(title string, width int, height int, control Control) *window { C.gtk_window_resize(w.window, C.gint(width), C.gint(height)) C.gtk_container_add(w.wc, layoutw) w.child = control - w.child.setParent(w.layoutc) + w.child.setParent(&controlParent{w.layoutc}) return w } -- cgit v1.2.3