summaryrefslogtreecommitdiff
path: root/newctrl/checkbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-18 16:01:40 -0400
committerPietro Gagliardi <[email protected]>2014-10-18 16:01:40 -0400
commita5c002fcd231129db4b99083af0e731482871df9 (patch)
tree267bf1152912a1f78b6f43501462aeefaf7b1cd0 /newctrl/checkbox_darwin.go
parent0351cf27fefd59148eee3f5f98ecfbaef2b607ac (diff)
More Mac OS X work. Woah, almost done!
Diffstat (limited to 'newctrl/checkbox_darwin.go')
-rw-r--r--newctrl/checkbox_darwin.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/newctrl/checkbox_darwin.go b/newctrl/checkbox_darwin.go
index 741b163..1578add 100644
--- a/newctrl/checkbox_darwin.go
+++ b/newctrl/checkbox_darwin.go
@@ -21,8 +21,8 @@ func newCheckbox(text string) *checkbox {
controlSingleObject: newControlSingleObject(C.newCheckbox()),
toggled: newEvent(),
}
- C.buttonSetText(c._id, ctext)
- C.checkboxSetDelegate(c._id, unsafe.Pointer(c))
+ C.buttonSetText(c.id, ctext)
+ C.checkboxSetDelegate(c.id, unsafe.Pointer(c))
return c
}
@@ -31,21 +31,21 @@ func (c *checkbox) OnToggled(e func()) {
}
func (c *checkbox) Text() string {
- return C.GoString(C.buttonText(c._id))
+ return C.GoString(C.buttonText(c.id))
}
func (c *checkbox) SetText(text string) {
ctext := C.CString(text)
defer C.free(unsafe.Pointer(ctext))
- C.buttonSetText(c._id, ctext)
+ C.buttonSetText(c.id, ctext)
}
func (c *checkbox) Checked() bool {
- return fromBOOL(C.checkboxChecked(c._id))
+ return fromBOOL(C.checkboxChecked(c.id))
}
func (c *checkbox) SetChecked(checked bool) {
- C.checkboxSetChecked(c._id, toBOOL(checked))
+ C.checkboxSetChecked(c.id, toBOOL(checked))
}
//export checkboxToggled