summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugin.go b/plugin.go
index 251f880..6623fd4 100644
--- a/plugin.go
+++ b/plugin.go
@@ -214,21 +214,18 @@ func initToolkit(name string, filename string) *aplug {
return newPlug
}
+// 2024/01/11 finally moving to type any. simplify to just 'value'
// 2023/05/09 pretty clean
-// 2023/04/06 Queue() is also being used and channels are being used. memcopy() only
+// 2023/04/06 Queue() is also being used and channels are being used.
func newAction(n *Node, atype widget.ActionType) *widget.Action {
var a widget.Action
a.ActionType = atype
if (n == nil) {
return &a
}
- a.Name = n.Name
- a.Text = n.Text
a.WidgetId = n.id
-
- a.B = n.B
- a.I = n.I
- a.S = n.S
+ a.ProgName = n.progname
+ a.Value = n.value
a.X = n.X
a.Y = n.Y