summaryrefslogtreecommitdiff
path: root/redo/window.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-22 17:45:29 -0400
committerPietro Gagliardi <[email protected]>2014-07-22 17:45:29 -0400
commite9c6d96d2da8311969870335850bd88ec899e813 (patch)
tree5c6e1d8a6eeb456b6c2788cf9d671c083c9ae635 /redo/window.go
parente989c953fa683c56d9214e24c9f1fd22027afa9c (diff)
Added provisions for proper window redraw on Window.SetParent() and implemented them on Mac OS X; still untested.
Diffstat (limited to 'redo/window.go')
-rw-r--r--redo/window.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/redo/window.go b/redo/window.go
index 143a875..40e846c 100644
--- a/redo/window.go
+++ b/redo/window.go
@@ -45,6 +45,5 @@ func (w *window) SetControl(control Control) {
control.unparent()
control.parent(w)
w.child = control
- // TODO trigger a resize to let the new control actually be shown
- // TODO do the same with control's old parent, if any
+ // each call to unparent() and parent() will cause the old/new parents to be redrawn; we don't have to worry about that here
}