diff options
| author | Jeff Carr <[email protected]> | 2025-02-12 15:26:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-12 15:26:24 -0600 |
| commit | 552bdeb1e6250065f553af16756e54f90092d86b (patch) | |
| tree | ecb04b4a515a4ed6a0f521faa3f6af10209ca642 /plugin.go | |
| parent | 0a6027244078ce36de31af64dfd01e561420d4e5 (diff) | |
plugin related cleanups
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |
