diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 21:31:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 21:31:49 -0600 |
| commit | 841e6252c95244f0ee7faf2c01d33f69a8ab483a (patch) | |
| tree | ef400228622b87611168db2227269ba7fd56625d /nocui/widget.go | |
| parent | ba95c13799740b5f55541fc5e8ab9f1d34f7e421 (diff) | |
common tree package for toolkitsv0.12.4
This update provides *lots* of toolkit updates. This will allow
the next step of debugging the gocui toolkit to make it work
again. There are new common routines for handling the plugin
channel communication
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nocui/widget.go')
| -rw-r--r-- | nocui/widget.go | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/nocui/widget.go b/nocui/widget.go deleted file mode 100644 index 6e50705..0000000 --- a/nocui/widget.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "go.wit.com/log" - "go.wit.com/gui/widget" -) - -// this is specific to the nocui toolkit -func initWidget(n *node) *guiWidget { - var w *guiWidget - w = new(guiWidget) - // Set(w, "default") - - if n.WidgetType == widget.Root { - log.Log(INFO, "setupWidget() FOUND ROOT w.id =", n.WidgetId) - n.WidgetId = 0 - me.rootNode = n - return w - } - - if (n.WidgetType == widget.Box) { - if (n.direction == widget.Horizontal) { - // n.horizontal = true - } else { - // n.horizontal = false - } - } - - return w -} |
