I am a dolt; make Checkbox.Checked() return a bool directly on Windows.

This commit is contained in:
Pietro Gagliardi 2014-08-03 09:22:15 -04:00
parent 6785b48d28
commit fd48be68ee
1 changed files with 1 additions and 4 deletions

View File

@ -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) {