diff options
| author | Jeff Carr <[email protected]> | 2023-04-27 09:47:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-27 09:47:31 -0500 |
| commit | a0d0a93f7f7131f6ef50ebbe4bad9a57f2e1245d (patch) | |
| tree | 1eab840434d0637e35087d59bb593ee6c7b132e1 /toolkit/andlabs/group.go | |
| parent | 8d8aabd1c86399603347d24f9060ed311d66153c (diff) | |
andlabs: more into the binary tree
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/group.go')
| -rw-r--r-- | toolkit/andlabs/group.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/toolkit/andlabs/group.go b/toolkit/andlabs/group.go index 1551d66..8138576 100644 --- a/toolkit/andlabs/group.go +++ b/toolkit/andlabs/group.go @@ -1,23 +1,21 @@ package main import ( - "git.wit.org/wit/gui/toolkit" - "github.com/andlabs/ui" _ "github.com/andlabs/ui/winmanifest" ) -func newGroup(a *toolkit.Action) { - // w := a.Widget - log(debugToolkit, "NewGroup()", a.Name) +func (p *node) newGroup(n *node) { + log(debugToolkit, "NewGroup()", n.Name) - t := andlabs[a.ParentId] + t := p.tk if (t == nil) { - log(debugToolkit, "NewGroup() toolkit struct == nil. name=", a.Name) + log(debugToolkit, "NewGroup() toolkit struct == nil. name=", n.Name) listMap(debugToolkit) } - newt := t.rawGroup(a.Name) - place(a, t, newt) + newt := t.rawGroup(n.Name) + n.tk = newt + p.place(n) } // make new Group here |
