diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-26 14:11:03 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-26 14:11:03 -0400 |
| commit | d34ffa326c98f1c385d2068ede115887e23b3e7e (patch) | |
| tree | 30de1c8a595a117184d48ce9524b2fff0fc0b13b /redo/window_darwin.go | |
| parent | 22989c13da1ece51a815046ee68ff57c36bbeaeb (diff) | |
Made the sizing recursive chain idempotent and added a -spaced option to the test program to test spacing.
Diffstat (limited to 'redo/window_darwin.go')
| -rw-r--r-- | redo/window_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/window_darwin.go b/redo/window_darwin.go index 16f8b9f..7c10861 100644 --- a/redo/window_darwin.go +++ b/redo/window_darwin.go @@ -32,7 +32,6 @@ func newWindow(title string, width int, height int, control Control) *window { closing: newEvent(), container: new(container), } - w.container.beginResize = w.beginResize C.windowSetDelegate(id, unsafe.Pointer(w)) w.child = control w.child.setParent(C.windowContentView(w.id)) @@ -78,6 +77,7 @@ func windowClosing(xw unsafe.Pointer) C.BOOL { //export windowResized func windowResized(xw unsafe.Pointer, width C.uintptr_t, height C.uintptr_t) { w := (*window)(unsafe.Pointer(xw)) + w.container.d = w.beginResize() w.resize(int(width), int(height)) fmt.Printf("new size %d x %d\n", width, height) } |
