summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-26 21:54:14 -0400
committerPietro Gagliardi <[email protected]>2014-06-26 21:54:14 -0400
commit20821c26eb32b4f5772cf3e2ba13d36d424731c3 (patch)
treebe0e5f8df602f064a9a0633b10dec9fe437ec075 /sysdata_darwin.go
parentebbd76716f3e35bdb86a6ca9b327bc014d7f6e3b (diff)
Implemented Checkbox.SetChecked() on Mac OS X and updated the README.
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index 26bcd98..48b7d44 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -422,3 +422,13 @@ func (s *sysData) center() {
}
<-ret
}
+
+func (s *sysData) setChecked(checked bool) {
+ ret := make(chan struct{})
+ defer close(ret)
+ uitask <- func() {
+ C.setCheckboxChecked(s.id, toBOOL(checked))
+ ret <- struct{}{}
+ }
+ <-ret
+}