diff options
| author | Jeff Carr <[email protected]> | 2023-04-27 10:24:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-27 10:24:52 -0500 |
| commit | e3dbd4b2074c80cc089e54495ff2df3f94afabab (patch) | |
| tree | cf5a4ce117ad2861041df8df579027ab0d1d578e /toolkit/andlabs/label.go | |
| parent | d5d11d9ca9c69e01715d191eb63ead18d8d7ff05 (diff) | |
andlabs: more things in the binary tree
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/label.go')
| -rw-r--r-- | toolkit/andlabs/label.go | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/toolkit/andlabs/label.go b/toolkit/andlabs/label.go index 7762827..0fa075e 100644 --- a/toolkit/andlabs/label.go +++ b/toolkit/andlabs/label.go @@ -3,30 +3,16 @@ package main import ( "github.com/andlabs/ui" _ "github.com/andlabs/ui/winmanifest" - - "git.wit.org/wit/gui/toolkit" ) -func newLabel(a *toolkit.Action) { - var newt *andlabsT - log(debugToolkit, "NewLabel()", a.Name) - - t := andlabs[a.ParentId] - if (t == nil) { - listMap(debugError) - log(debugError, "ERROR newLabel() listMap()") - log(debugError, "ERROR FFFFFFFFFFFF listMap()") - log(debugError, "ERROR FFFFFFFFFFFF listMap()") - return - } - - log(debugToolkit, "NewLabel()", a.Name) - - newt = new(andlabsT) +func (p *node) newLabel(n *node) { + log(logInfo, "NewLabel()", n.Name) - c := ui.NewLabel(a.Name) + newt := new(andlabsT) + c := ui.NewLabel(n.Name) newt.uiLabel = c newt.uiControl = c - place(a, t, newt) + n.tk = newt + p.place(n) } |
