summaryrefslogtreecommitdiff
path: root/redo/window_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-15 20:48:16 -0400
committerPietro Gagliardi <[email protected]>2014-07-15 20:48:16 -0400
commit5ebd89984ac63c30a68a325a430038979badc3a0 (patch)
tree7493574d046fb9a048edf610e6d60fafae58e8df /redo/window_unix.go
parent474436e9f6e84f26edd08bfcff16d62a3cd40175 (diff)
Added parenting/unparenting of controls to the GTK+ backend and the test program.
Diffstat (limited to 'redo/window_unix.go')
-rw-r--r--redo/window_unix.go7
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,