summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index 3656e51..4ef2114 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -62,11 +62,11 @@ func doMouseClick(w int, h int) {
case widget.Checkbox:
if tk.Checked() {
log.Log(WARN, "checkbox is being set to false")
- tk.node.State.Checked = false
+ tk.SetChecked(false)
tk.setCheckbox()
} else {
log.Log(WARN, "checkbox is being set to true")
- tk.node.State.Checked = true
+ tk.SetChecked(true)
tk.setCheckbox()
}
me.myTree.SendUserEvent(tk.node)