diff options
| author | Jeff Carr <[email protected]> | 2024-01-21 14:44:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-21 14:44:47 -0600 |
| commit | 1fdf786a72fd4af0c1acca45b250b5f66ef3e31b (patch) | |
| tree | 0f247e40f69c8bdce56574a3b608c78955b6b447 /common.go | |
| parent | ba70be3064c1d082eb0e9146562b7f07dd894fb0 (diff) | |
visable state is honored. TODO: fix hide/show
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 36 |
1 files changed, 4 insertions, 32 deletions
@@ -226,7 +226,7 @@ func (n *Node) Margin() *Node { n.margin = true n.changed = true - log.Warn("Margin()", n.WidgetType, n.progname) + log.Log(INFO, "Margin()", n.WidgetType, n.progname) // inform the toolkits sendAction(n, widget.Margin) return n @@ -259,7 +259,7 @@ func (n *Node) Pad() *Node { n.pad = true n.changed = true - log.Warn("Pad()", n.WidgetType, n.progname) + log.Log(INFO, "Pad()", n.WidgetType, n.progname) // inform the toolkits sendAction(n, widget.Pad) return n @@ -323,7 +323,8 @@ func (n *Node) Hidden() bool { func (n *Node) Ready() bool { if n == nil { - log.Warn("Ready() got node == nil") + log.Log(NOW, "Ready() got node == nil. TODO: find code trace to here") + panic("ready got nil") // TODO: figure out if you can identify the code trace // to help find the root cause return false @@ -343,35 +344,6 @@ func TreeRoot() *Node { // // -// This should not really do anything. as per the docs, the "Standard()" way -// should be the default way -/* -func (n *Node) Standard() *Node { - log.Warn("Standard() not implemented yet") - return n -} - -func (n *Node) SetMargin() *Node { - log.Warn("DoMargin() not implemented yet") - return n -} -*/ - -/* -func (n *Node) Window(title string) *Node { - log.Warn("Window()", n) - return n.NewWindow(title) -} -*/ - -/* -func (n *Node) SetNext(w int, h int) { - n.NextW = w - n.NextH = h - log.Info("SetNext() w,h =", n.NextW, n.NextH) -} -*/ - /* // string handling examples that might be helpful for normalizeInt() isAlpha := regexp.MustCompile(`^[A-Za-z]+$`).MatchString |
