diff options
| author | Jeff Carr <[email protected]> | 2022-10-08 23:51:48 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2022-10-08 23:51:48 -0500 |
| commit | dd7d277a86f25116cc1c0130a763409a166d49b4 (patch) | |
| tree | 7bf1f9b67f2f3d34e5153ccfa0b60c72cf9fb774 /table.go | |
| parent | 086986b6b8f55d15d18595bcbf3f76c023365b61 (diff) | |
Try renaming 'Node' to 'Box'
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -97,12 +97,13 @@ func InitColumns(mh *TableData, parts []TableColumnData) { } } -func AddTableTab(name string, rowcount int, parts []TableColumnData) *TableData { - n := NewWindow() - return n.AddTableBox(name, rowcount, parts) +func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnData) *TableData { + node := NewWindow() + b := node.box + return b.AddTableBox(name, rowcount, parts) } -func (n *Node) AddTableBox(name string, rowcount int, parts []TableColumnData) *TableData { +func (b *GuiBox) AddTableBox(name string, rowcount int, parts []TableColumnData) *TableData { mh := new(TableData) mh.RowCount = rowcount @@ -141,10 +142,9 @@ func (n *Node) AddTableBox(name string, rowcount int, parts []TableColumnData) * // is this needed? // gw.BoxMap[name] = box - // mh.Box = b - mh.n = n + mh.Box = b - n.uiBox.Append(table, true) + b.UiBox.Append(table, true) return mh } |
