diff options
| author | Jeff Carr <[email protected]> | 2024-01-08 20:52:10 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-08 20:52:10 -0600 |
| commit | 3c2da3f096a5e8aeaa657deb2dc047cc23118c99 (patch) | |
| tree | 9be876900a02aebed4540f5453759ea1f1d5c7ce /gocui/add.go | |
| parent | 2a9724d7a89733db8c41571a8b5d9d0e1f0d76b3 (diff) | |
use "go.wit.com/log"
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gocui/add.go')
| -rw-r--r-- | gocui/add.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gocui/add.go b/gocui/add.go index 92a512c..c17a3e9 100644 --- a/gocui/add.go +++ b/gocui/add.go @@ -1,6 +1,7 @@ package main import ( + log "go.wit.com/log" "go.wit.com/gui/widget" ) @@ -19,7 +20,7 @@ func (n *node) setFake() { fakeStartHeight = me.TabH fakeStartWidth += me.FakeW } - if (logInfo) { + if (true) { n.showView() } } @@ -27,10 +28,10 @@ func (n *node) setFake() { // set the widget start width & height func (n *node) addWidget() { nw := n.tk - log(logInfo, "setStartWH() w.id =", n.WidgetId, "n.name", n.Name) + log.Log(INFO, "setStartWH() w.id =", n.WidgetId, "n.name", n.Name) switch n.WidgetType { case widget.Root: - log(logInfo, "setStartWH() rootNode w.id =", n.WidgetId, "w.name", n.Name) + log.Log(INFO, "setStartWH() rootNode w.id =", n.WidgetId, "w.name", n.Name) nw.color = &colorRoot n.setFake() return @@ -74,5 +75,5 @@ func (n *node) addWidget() { } */ } - n.showWidgetPlacement(logInfo, "addWidget()") + n.showWidgetPlacement(true, "addWidget()") } |
