diff options
Diffstat (limited to 'redo/window_unix.go')
| -rw-r--r-- | redo/window_unix.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/redo/window_unix.go b/redo/window_unix.go index 062c65f..3992443 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -23,6 +23,8 @@ type window struct { layoutc *C.GtkContainer layout *C.GtkLayout + child Control + closing *event } @@ -66,8 +68,9 @@ func (w *window) SetControl(control Control) *Request { c := make(chan interface{}) return &Request{ op: func() { - // TODO unparent - // TODO reparent + control.unparent() + control.parent(w) + w.child = control c <- struct{}{} }, resp: c, |
