summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugin.go b/plugin.go
index 30509ca..19af06f 100644
--- a/plugin.go
+++ b/plugin.go
@@ -42,18 +42,18 @@ func newAdd(n *tree.Node) {
}
// for gocui as a GUI plugin, SetTitle & SetLabel are identical to SetText
-func newSetTitle(n *tree.Node, s string) {
- newSetText(n, s)
+func setTitle(n *tree.Node, s string) {
+ setText(n, s)
}
-func newSetLabel(n *tree.Node, s string) {
- newSetText(n, s)
+func setLabel(n *tree.Node, s string) {
+ setText(n, s)
}
-// newSetText() and newAddText() are simple. They take the event sent
+// setText() and addText() are simple. They take the event sent
// to the GO plugin from the application and lookup the plugin structure
// then pass that event to gocui. This is the transfer point
-func newSetText(n *tree.Node, s string) {
+func setText(n *tree.Node, s string) {
if n == nil {
log.Warn("Tree Error: Add() sent n == nil")
return
@@ -66,7 +66,7 @@ func newSetText(n *tree.Node, s string) {
w.SetText(s)
}
-func newAddText(n *tree.Node, s string) {
+func addText(n *tree.Node, s string) {
if n == nil {
log.Warn("Tree Error: Add() sent n == nil")
return