From 5ebd89984ac63c30a68a325a430038979badc3a0 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 15 Jul 2014 20:48:16 -0400 Subject: Added parenting/unparenting of controls to the GTK+ backend and the test program. --- redo/window_unix.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'redo/window_unix.go') 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, -- cgit v1.2.3