diff options
| author | Jeff Carr <[email protected]> | 2021-10-28 10:39:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-28 10:39:33 -0500 |
| commit | c97cb89b4a154548891173764a4310e3be5b1a2c (patch) | |
| tree | 2002a0666850ccdf561085209a0189cd4de08fa8 /window.go | |
| parent | 2b85dda8006adacc7b5b0c5594033226097e9214 (diff) | |
DOCS: clean up variable names for node.*() functionsv0.0.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -147,18 +147,18 @@ func (parent *Node) makeNode(title string, x int, y int) *Node { return &node } -func (parent *Node) AddNode(title string) *Node { +func (n *Node) AddNode(title string) *Node { var node Node node.Name = title - node.Width = parent.Width - node.Height = parent.Height + node.Width = n.Width + node.Height = n.Height id := Config.prefix + strconv.Itoa(Config.counter) Config.counter += 1 node.id = id - parent.Append(&node) - node.parent = parent + n.Append(&node) + node.parent = n return &node } |
