diff options
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()") } |
