diff options
| author | Jeff Carr <[email protected]> | 2021-10-31 03:50:22 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-31 03:50:22 -0500 |
| commit | e5638b8079728e66b09071ec8af1d2b423b9eb76 (patch) | |
| tree | 8c91e0984492b2abab1086870caddcecbbfb491a /table.go | |
| parent | edceb19a33643419d0e367d36a7753fb68ede470 (diff) | |
NODE: add a button in the hole that doesn't use the other hole
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -99,10 +99,11 @@ func InitColumns(mh *TableData, parts []TableColumnData) { func AddTableTab(gw *GuiWindow, name string, rowcount int, parts []TableColumnData) *TableData { node := NewWindow() - return AddTableBox(node.box, name, rowcount, parts) + b := node.box + return b.AddTableBox(name, rowcount, parts) } -func AddTableBox(box *GuiBox, 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,9 +142,9 @@ func AddTableBox(box *GuiBox, name string, rowcount int, parts []TableColumnData // is this needed? // gw.BoxMap[name] = box - mh.Box = box + mh.Box = b - box.UiBox.Append(table, true) + b.UiBox.Append(table, true) return mh } |
