andlabs: QueueMain() on add() + delay is _very_ stable
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
489f73496b
commit
67ee1513bf
|
@ -0,0 +1,19 @@
|
|||
package gui
|
||||
|
||||
import (
|
||||
"git.wit.org/wit/gui/toolkit"
|
||||
)
|
||||
|
||||
func (n *Node) NewBox(name string, b bool) *Node {
|
||||
newNode := n.newNode(name, toolkit.Box, nil)
|
||||
newNode.B = b
|
||||
|
||||
var a toolkit.Action
|
||||
a.ActionType = toolkit.Add
|
||||
a.Name = name
|
||||
a.Text = name
|
||||
a.B = b
|
||||
newaction(&a, newNode, n)
|
||||
|
||||
return newNode
|
||||
}
|
14
grid.go
14
grid.go
|
@ -37,17 +37,3 @@ func (n *Node) NewGrid(name string, w int, h int) *Node {
|
|||
|
||||
return newNode
|
||||
}
|
||||
|
||||
func (n *Node) NewBox(name string, b bool) *Node {
|
||||
newNode := n.newNode(name, toolkit.Box, nil)
|
||||
newNode.B = b
|
||||
|
||||
var a toolkit.Action
|
||||
a.ActionType = toolkit.Add
|
||||
a.Name = name
|
||||
a.Text = name
|
||||
a.B = b
|
||||
newaction(&a, newNode, n)
|
||||
|
||||
return newNode
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue