summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-19 04:25:46 -0600
committerJeff Carr <[email protected]>2025-02-19 17:39:45 -0600
commitf36f9cfd0fbbd705b1dd609f021f18ed28a3742d (patch)
treefef508e88de8a0f1d9401789e056a129c1185389 /eventMouseClick.go
parenta5800917e8383929e5c9dc8ad0265d6a4b4357bf (diff)
only a few node references left
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)