diff options
Diffstat (limited to 'redo/controls_unix.go')
| -rw-r--r-- | redo/controls_unix.go | 8 |
1 files changed, 6 insertions, 2 deletions
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) } |
