summaryrefslogtreecommitdiff
path: root/table.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-31 03:50:22 -0500
committerJeff Carr <[email protected]>2021-10-31 03:50:22 -0500
commite5638b8079728e66b09071ec8af1d2b423b9eb76 (patch)
tree8c91e0984492b2abab1086870caddcecbbfb491a /table.go
parentedceb19a33643419d0e367d36a7753fb68ede470 (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.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/table.go b/table.go
index 3ed8c6a..92ae871 100644
--- a/table.go
+++ b/table.go
@@ -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
}