summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-13 20:33:04 -0600
committerJeff Carr <[email protected]>2025-02-13 20:33:04 -0600
commit5530d2c6ad95a27424eff4efe49da116307223d2 (patch)
treebdc0c50508bafff40ab7a2d4ee010e872d1898aa
parenta16207bd1e2a46245175fa0100109a59035384c4 (diff)
subbed in table()
-rw-r--r--init.go6
-rw-r--r--table.go13
-rw-r--r--treeInit.go1
3 files changed, 13 insertions, 7 deletions
diff --git a/init.go b/init.go
index 34cb40f..df62633 100644
--- a/init.go
+++ b/init.go
@@ -49,12 +49,6 @@ func setLabel(n *tree.Node, s string) {
})
}
-func showTable(n *tree.Node) {
- ui.QueueMain(func() {
- log.Info("show table here")
- })
-}
-
func realSetText(n *tree.Node, s string) {
ui.QueueMain(func() {
SetText(n, s)
diff --git a/table.go b/table.go
new file mode 100644
index 0000000..9e971de
--- /dev/null
+++ b/table.go
@@ -0,0 +1,13 @@
+// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
+// Use of this source code is governed by the GPL 3.0
+
+package main
+
+import (
+ "go.wit.com/lib/protobuf/guipb"
+ "go.wit.com/log"
+)
+
+func showTable(t *guipb.Table) {
+ log.Info("should show table here")
+}
diff --git a/treeInit.go b/treeInit.go
index 27153e2..c51a9fe 100644
--- a/treeInit.go
+++ b/treeInit.go
@@ -63,7 +63,6 @@ func initTree() *tree.TreeInfo {
t.SetChecked = setChecked
t.ToolkitClose = toolkitClose
t.ShowTable = showTable
- t.Show = showTable
return t
}