summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/grid.go b/grid.go
index 168973a..64675a5 100644
--- a/grid.go
+++ b/grid.go
@@ -33,8 +33,8 @@ type GridOffset struct {
Y int
}
-func (n *Node) NewGrid(progname string, w int, h int) *Node {
- newNode := n.newNode(progname, widget.Grid)
+func (parent *Node) NewGrid(progname string, w int, h int) *Node {
+ newNode := parent.newNode(progname, widget.Grid)
newNode.progname = progname
newNode.W = w