diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-23 17:09:08 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-23 17:09:08 -0400 |
| commit | a2eb69cbf6887a3eee85c7d9e10d13672e4cdb76 (patch) | |
| tree | 1aea9da0499889ef8dbf5157c0b904ce7121b047 | |
| parent | 300835a1b45b0b59951baa28e69e886aa72fc38f (diff) | |
Fixed compilation errors on Mac OS X. Reparenting works; redrawing, however...
| -rw-r--r-- | redo/controls_darwin.go | 4 | ||||
| -rw-r--r-- | redo/objc_darwin.h | 1 | ||||
| -rw-r--r-- | redo/window_darwin.m | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/redo/controls_darwin.go b/redo/controls_darwin.go index 9fef658..8d13aaa 100644 --- a/redo/controls_darwin.go +++ b/redo/controls_darwin.go @@ -93,10 +93,10 @@ func newCheckbox(text string) *checkbox { // we don't need to define our own event here; we can just reuse Button's // (it's all target-action anyway) -type (c *checkbox) Checked() bool { +func (c *checkbox) Checked() bool { return fromBOOL(C.checkboxChecked(c.id)) } -type (c *checkbox) SetChecked(checked bool) { +func (c *checkbox) SetChecked(checked bool) { C.checkboxSetChecked(c.id, toBOOL(checked)) } diff --git a/redo/objc_darwin.h b/redo/objc_darwin.h index ec0abf0..e69ed71 100644 --- a/redo/objc_darwin.h +++ b/redo/objc_darwin.h @@ -28,6 +28,7 @@ extern void windowSetTitle(id, const char *); extern void windowShow(id); extern void windowHide(id); extern void windowClose(id); +extern void windowRedraw(id); /* controls_darwin.m */ extern void unparent(id); diff --git a/redo/window_darwin.m b/redo/window_darwin.m index 18dee84..20e26e4 100644 --- a/redo/window_darwin.m +++ b/redo/window_darwin.m @@ -87,4 +87,5 @@ void windowRedraw(id win) d = [toNSWindow(win) delegate]; [d doWindowResize:win]; -}
\ No newline at end of file + // TODO new control sizes don't take effect properly, even with [toNSWindow(win) display]; +} |
