summaryrefslogtreecommitdiff
path: root/redo/checkbox_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-03 09:22:15 -0400
committerPietro Gagliardi <[email protected]>2014-08-03 09:22:15 -0400
commitfd48be68ee957e936c272348d3f0b0bddaba5c92 (patch)
tree2e1188d09c52ba4e4af059320f10c68876be90c5 /redo/checkbox_windows.go
parent6785b48d2816a185a712e987fe67d9d288645073 (diff)
I am a dolt; make Checkbox.Checked() return a bool directly on Windows.
Diffstat (limited to 'redo/checkbox_windows.go')
-rw-r--r--redo/checkbox_windows.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/redo/checkbox_windows.go b/redo/checkbox_windows.go
index 2dcf519..4c44bdd 100644
--- a/redo/checkbox_windows.go
+++ b/redo/checkbox_windows.go
@@ -43,10 +43,7 @@ func (c *checkbox) SetText(text string) {
}
func (c *checkbox) Checked() bool {
- if C.checkboxChecked(c.hwnd) == C.FALSE {
- return false
- }
- return true
+ return C.checkboxChecked(c.hwnd) != C.FALSE
}
func (c *checkbox) SetChecked(checked bool) {