summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 20:25:37 -0500
committerJeff Carr <[email protected]>2023-05-09 20:25:37 -0500
commit26b06253d540fbcac2ae1372aa7fc0b1089bab98 (patch)
tree9afc2600ce0633e85990f8376091d93fec7c6d3a /grid.go
parent45ef7f37c4af0495ccf988f2f726aaea24a999e4 (diff)
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/grid.go b/grid.go
index 103b8f7..6b2df82 100644
--- a/grid.go
+++ b/grid.go
@@ -23,21 +23,15 @@ import (
// -----------------------------
func (n *Node) NewGrid(name string, w int, h int) *Node {
- newNode := n.newNode(name, toolkit.Grid, func() {
- log(debugChange, "click() NewGrid not defined =", name)
- })
+ newNode := n.newNode(name, toolkit.Grid)
- a := newAction(newNode, toolkit.Add)
-
- a.X = w
- a.Y = h
newNode.X = w
newNode.Y = h
newNode.NextW = 1
newNode.NextH = 1
+ a := newAction(newNode, toolkit.Add)
sendAction(a)
-
return newNode
}