diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-18 16:01:40 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-18 16:01:40 -0400 |
| commit | a5c002fcd231129db4b99083af0e731482871df9 (patch) | |
| tree | 267bf1152912a1f78b6f43501462aeefaf7b1cd0 /newctrl/button_darwin.go | |
| parent | 0351cf27fefd59148eee3f5f98ecfbaef2b607ac (diff) | |
More Mac OS X work. Woah, almost done!
Diffstat (limited to 'newctrl/button_darwin.go')
| -rw-r--r-- | newctrl/button_darwin.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/newctrl/button_darwin.go b/newctrl/button_darwin.go index 65262c1..1a0cd1b 100644 --- a/newctrl/button_darwin.go +++ b/newctrl/button_darwin.go @@ -21,8 +21,8 @@ func newButton(text string) *button { controlSingleObject: newControlSingleObject(C.newButton()), clicked: newEvent(), } - C.buttonSetText(b._id, ctext) - C.buttonSetDelegate(b._id, unsafe.Pointer(b)) + C.buttonSetText(b.id, ctext) + C.buttonSetDelegate(b.id, unsafe.Pointer(b)) return b } @@ -31,13 +31,13 @@ func (b *button) OnClicked(e func()) { } func (b *button) Text() string { - return C.GoString(C.buttonText(b._id)) + return C.GoString(C.buttonText(b.id)) } func (b *button) SetText(text string) { ctext := C.CString(text) defer C.free(unsafe.Pointer(ctext)) - C.buttonSetText(b._id, ctext) + C.buttonSetText(b.id, ctext) } //export buttonClicked |
