summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/checkbox.go b/checkbox.go
index 186f3a8..353072f 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -3,12 +3,18 @@ package gui
import "git.wit.org/wit/gui/toolkit"
func (n *Node) Checked() bool {
- n.Dump()
return n.widget.B
}
func (n *Node) NewCheckbox(name string) *Node {
newNode := n.New(name, toolkit.Checkbox, nil)
- send(n, newNode)
+
+ var a toolkit.Action
+ a.Type = toolkit.Add
+ // a.Widget = &newNode.widget
+ // a.Where = &n.widget
+ // action(&a, newNode, n)
+ newaction(&a, newNode, n)
+
return newNode
}