summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-05 15:02:09 -0600
committerJeff Carr <[email protected]>2024-02-05 15:02:09 -0600
commita57a8b5a6348a9142088a0170a3682cdc0ecdb23 (patch)
tree618771ba9ba68d612a981b4fa0fa475304b15267 /node.go
parent8fcf5f668b182bd382b489cd19cfdcd59628b279 (diff)
prepare for protobufv0.20.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/node.go b/node.go
index 947e6e3..c198f1b 100644
--- a/node.go
+++ b/node.go
@@ -13,7 +13,7 @@ and it initializes basic default values
there isn't much to see here.
*/
-func (n *Node) newNode(title string, t widget.WidgetType) *Node {
+func (n *Node) newNode(s string, t widget.WidgetType) *Node {
if n == nil {
log.Warn("newNode got parent == nil")
panic("gui newNode")
@@ -21,8 +21,11 @@ func (n *Node) newNode(title string, t widget.WidgetType) *Node {
var newN *Node
newN = addNode()
- newN.progname = title
- newN.value = title
+ newN.progname = s
+ newN.label = s
+ newN.defaultS = s
+ newN.newString = s
+ newN.currentS = s
newN.WidgetType = t
newN.strings = make(map[string]int)