summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 00:12:12 -0600
committerJeff Carr <[email protected]>2025-03-03 00:12:12 -0600
commit9554b6a28765db7debce2cc27587476dc90e5d3e (patch)
treec51498613fe49a106d657ef70a94643510a4929e /init.go
parent71c137c56b5541b3c049d513ec3dcf1c3502fe08 (diff)
starting to stub in widgetpb
Diffstat (limited to 'init.go')
-rw-r--r--init.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/init.go b/init.go
index 7c8a35a..6887436 100644
--- a/init.go
+++ b/init.go
@@ -6,6 +6,7 @@ import (
"os"
"runtime/debug"
+ "go.wit.com/lib/protobuf/guipb"
"go.wit.com/log"
"go.wit.com/widget"
)
@@ -25,12 +26,14 @@ func initNew() {
me.rootNode.WidgetType = widget.Root
me.rootNode.hidden = false // always send the rootNode to the toolkits
+ me.widgets = guipb.NewWidgets()
+
// used to pass debugging flags to the toolkit plugins
- me.flag = me.rootNode.newNode("flag", 0)
- me.flag.WidgetType = widget.Flag
+ flag := me.rootNode.newNode("flag", 0)
+ flag.WidgetType = widget.Flag
- me.flag = me.rootNode.newNode("stdout", 0)
- me.flag.WidgetType = widget.Stdout
+ flag = me.rootNode.newNode("stdout", 0)
+ flag.WidgetType = widget.Stdout
me.guiChan = make(chan widget.Action, 1)