summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redo/controls_darwin.go4
-rw-r--r--redo/objc_darwin.h1
-rw-r--r--redo/window_darwin.m3
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];
+}