summaryrefslogtreecommitdiff
path: root/window_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-28 00:13:18 -0400
committerPietro Gagliardi <[email protected]>2014-10-28 00:13:18 -0400
commit73fcb4e22d4f90e61165f5cdb438f3a4b224ad4c (patch)
treebfc46d1f8cd5c69b47c0ec391c404ca4d9c54aaa /window_darwin.go
parent6b27bd732743948e0002abe4d452212fad8ac045 (diff)
Fixed Mac OS X issues.
Diffstat (limited to 'window_darwin.go')
-rw-r--r--window_darwin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/window_darwin.go b/window_darwin.go
index 32f744a..cffc2a0 100644
--- a/window_darwin.go
+++ b/window_darwin.go
@@ -27,12 +27,11 @@ func newWindow(title string, width int, height int, control Control) *window {
id: id,
closing: newEvent(),
child: control,
- container: newContainer(),
}
C.windowSetDelegate(w.id, unsafe.Pointer(w))
- C.windowSetContentView(w.id, w.container.id)
+ w.container = newContainer(w.child.resize)
w.child.setParent(w.container.parent())
- w.container.resize = w.child.resize
+ C.windowSetContentView(w.id, w.container.id)
// trigger an initial resize
return w
}
@@ -49,6 +48,7 @@ func (w *window) SetTitle(title string) {
func (w *window) Show() {
C.windowShow(w.id)
+ // TODO we need a dummy resize here because things might not be in the right place
}
func (w *window) Hide() {