diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-29 23:01:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-29 23:01:28 -0400 |
| commit | 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea (patch) | |
| tree | da3b816d12434e7c5268c6e873dd60f5e8534257 /redo/window_unix.go | |
| parent | f4bb7360d4060d9c62c30d6b5508683a4fb6c472 (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/window_unix.go')
| -rw-r--r-- | redo/window_unix.go | 6 |
1 files changed, 1 insertions, 5 deletions
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 } |
