summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/grid.go b/grid.go
index 2a3ce6a..cefe419 100644
--- a/grid.go
+++ b/grid.go
@@ -22,7 +22,7 @@ func (n *Node) NewGrid(name string, x int, y int) *Node {
})
var a toolkit.Action
- a.Type = toolkit.Add
+ a.ActionType = toolkit.Add
a.X = x
a.Y = y
newNode.X = x
@@ -38,7 +38,9 @@ func (n *Node) NewBox(name string, b bool) *Node {
newNode := n.New(name, toolkit.Box, nil)
var a toolkit.Action
- a.Type = toolkit.Add
+ a.ActionType = toolkit.Add
+ a.Name = name
+ a.Text = name
a.B = b
newaction(&a, newNode, n)