From 642929aca1b61da72c2ff577efaab83fc4b6252b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Mar 2025 00:13:13 -0600 Subject: [PATCH] add missing widget Actions --- action.go | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/action.go b/action.go index e6311f9..78ccdfb 100644 --- a/action.go +++ b/action.go @@ -43,7 +43,7 @@ type Action struct { // Make widgets fill up the space available Expand bool - TablePB []byte // a table protobuf + TablePB []byte // a table protobuf WidgetPB []byte // a tree of widgets } @@ -112,6 +112,22 @@ func (s ActionType) String() string { return "Move" case Dump: return "Dump" + case User: + return "User" + case ToolkitLoad: + return "ToolkitLoad" + case ToolkitInit: + return "ToolkitInit" + case ToolkitClose: + return "ToolkitClose" + case ToolkitPanic: + return "ToolkitPanic" + case Heartbeat: + return "Heartbeat" + case UserQuit: + return "UserQuit" + case EnableDebug: + return "EnableDebug" } - return "ActionType.String() Error" + return "gui ActionType.String() Error. must be missing something in the code here" }