From 0a20b22a6c13c2ccf6a914cd847be9e3f744b343 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 3 Jan 2024 18:15:54 -0600 Subject: move to go.wit.com/log !!! Signed-off-by: Jeff Carr --- tab.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tab.go') diff --git a/tab.go b/tab.go index 463944e..b202f6b 100644 --- a/tab.go +++ b/tab.go @@ -1,6 +1,8 @@ package gui import ( + "go.wit.com/log" + "go.wit.com/gui/gui/toolkit" ) @@ -12,16 +14,16 @@ func (n *Node) NewTab(text string) *Node { if (n.WidgetType != toolkit.Window) { // figure out what the actual window is - log(logError, "NewTab() is being requested on something that isn't a Window. node =", n) + log.Warn("NewTab() is being requested on something that isn't a Window. node =", n) if (n.parent == nil) { // TODO: find a window. any window. never give up. never die. - log(logError, "NewTab() TODO: make a window here", n) + log.Warn("NewTab() TODO: make a window here", n) panic("NewTab did not get passed a window") } - log(logError, "NewTab() parent =", n.parent) + log.Warn("NewTab() parent =", n.parent) if (n.parent.WidgetType == toolkit.Root) { // also broken - log(logError, "NewTab() TODO: make or find a window here", n) + log.Warn("NewTab() TODO: make or find a window here", n) panic("NewTab() did not get passed a window") } // go up the binary tree until we find a window widget to add a tab too -- cgit v1.2.3