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/containers_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redo/containers_unix.go') diff --git a/redo/containers_unix.go b/redo/containers_unix.go index a6fe832..36118fe 100644 --- a/redo/containers_unix.go +++ b/redo/containers_unix.go @@ -42,7 +42,7 @@ func (t *tab) Append(name string, control Control) { c := new(container) t.containers = append(t.containers, c) c.child = control - c.child.setParent((*C.GtkContainer)(unsafe.Pointer(layout))) + c.child.setParent(&controlParent{(*C.GtkContainer)(unsafe.Pointer(layout))}) g_signal_connect_after( C.gpointer(unsafe.Pointer(layout)), "size-allocate", -- cgit v1.2.3