summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-21 11:37:00 -0600
committerJeff Carr <[email protected]>2024-01-21 11:37:00 -0600
commitba70be3064c1d082eb0e9146562b7f07dd894fb0 (patch)
treef8fc37331297233379614238bc382bf0a4235313 /common.go
parentdfb7a47e8cccd82080de3d6ba97855eeb2be6593 (diff)
cleaner logging outputv0.12.20
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/common.go b/common.go
index 7b9c162..c897c2c 100644
--- a/common.go
+++ b/common.go
@@ -22,8 +22,8 @@ func (n *Node) Show() *Node {
n.changed = true
if n.WidgetType == widget.Window {
- log.Warn("Show on a hidden window", n.progname)
- log.Warn("this needs to do TestDraw()")
+ log.Log(CHANGE, "Show() on a hidden window", n.progname)
+ log.Log(NOW, "Show() TO FIX: this is doing TestDraw()")
n.TestDraw()
return n
}
@@ -44,8 +44,8 @@ func (n *Node) Hide() *Node {
*/
if n.WidgetType == widget.Window {
- log.Warn("Hide on a window", n.progname)
- log.Warn("this needs to do TestDestroy() ?")
+ log.Log(CHANGE, "Hide() on a window", n.progname)
+ log.Log(CHANGE, "Hide() this needs to do TestDestroy() ?")
n.Destroy()
n.hidden = true
n.changed = true
@@ -161,12 +161,12 @@ func (n *Node) Destroy() {
if !n.Ready() {
return
}
- // if ! n.enabled { return }
n.enabled = false
n.changed = true
- log.Warn("SENDING DESTROY ON", n.WidgetType, n.id, n.GetProgName())
+ log.Log(CHANGE, "Destroy()", n.WidgetType, n.id, n.GetProgName())
+
// inform the toolkits
sendAction(n, widget.Delete)
return