summaryrefslogtreecommitdiff
path: root/redo/controls_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-29 23:01:28 -0400
committerPietro Gagliardi <[email protected]>2014-07-29 23:01:28 -0400
commit9daab20fcef427dbf0c27a32d8c5ec5bb3366cea (patch)
treeda3b816d12434e7c5268c6e873dd60f5e8534257 /redo/controls_unix.go
parentf4bb7360d4060d9c62c30d6b5508683a4fb6c472 (diff)
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.
Diffstat (limited to 'redo/controls_unix.go')
-rw-r--r--redo/controls_unix.go8
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)
}