summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/action.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 06:57:39 -0600
committerJeff Carr <[email protected]>2023-12-16 06:57:39 -0600
commit87ab9a958d9eb9f4db35d5c9f9ce923df3132dad (patch)
treefd3ee29d828e9e69175a6ca04fec6ae0fe60fcc0 /toolkit/andlabs/action.go
parentdcce32583387be7fc4f6cd8c8dea62fd7dc42ecf (diff)
gocui: fixes to labels + line entriesv0.8.8.1v0.8.8
correct line hight dump non-working size rectangle code somehow works better better dropdown menu debugging minor fixes to common.go more common code Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/action.go')
-rw-r--r--toolkit/andlabs/action.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/toolkit/andlabs/action.go b/toolkit/andlabs/action.go
index 2088917..29b797a 100644
--- a/toolkit/andlabs/action.go
+++ b/toolkit/andlabs/action.go
@@ -174,7 +174,7 @@ func (n *node) Delete() {
}
}
-func rawAction(a toolkit.Action) {
+func rawAction(a *toolkit.Action) {
log(logInfo, "rawAction() START a.ActionType =", a.ActionType)
log(logInfo, "rawAction() START a.S =", a.S)
@@ -191,7 +191,7 @@ func rawAction(a toolkit.Action) {
log(logInfo, "rawAction() START a.WidgetId =", a.WidgetId, "a.ParentId =", a.ParentId)
switch a.WidgetType {
case toolkit.Flag:
- flag(&a)
+ flag(a)
return
}
@@ -232,18 +232,18 @@ func rawAction(a toolkit.Action) {
case toolkit.Disable:
n.enable(false)
case toolkit.Get:
- n.setText(&a)
+ n.setText(a)
case toolkit.GetText:
switch a.WidgetType {
case toolkit.Textbox:
a.S = n.S
}
case toolkit.Set:
- n.setText(&a)
+ n.setText(a)
case toolkit.SetText:
- n.setText(&a)
+ n.setText(a)
case toolkit.AddText:
- n.setText(&a)
+ n.setText(a)
case toolkit.Margin:
n.pad(toolkit.Unmargin)
case toolkit.Unmargin: