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_unix.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'redo/controls_unix.go') diff --git a/redo/controls_unix.go b/redo/controls_unix.go index 8e13767..67d844b 100644 --- a/redo/controls_unix.go +++ b/redo/controls_unix.go @@ -28,8 +28,12 @@ func newWidget(w *C.GtkWidget) *widgetbase { // these few methods are embedded by all the various Controls since they all will do the same thing -func (w *widgetbase) setParent(c *C.GtkContainer) { - C.gtk_container_add(c, w.widget) +type controlParent struct { + c *C.GtkContainer +} + +func (w *widgetbase) setParent(c *controlParent) { + C.gtk_container_add(c.c, w.widget) // make sure the new widget is shown C.gtk_widget_show_all(w.widget) } -- cgit v1.2.3