new toolkit tree functions
This commit is contained in:
parent
4046e33a63
commit
c502e7c5b6
|
@ -101,7 +101,11 @@ func (me *TreeInfo) doAction(a widget.Action) {
|
||||||
case widget.Disable:
|
case widget.Disable:
|
||||||
me.Disable(n)
|
me.Disable(n)
|
||||||
case widget.Delete:
|
case widget.Delete:
|
||||||
|
if me.Hide == nil {
|
||||||
|
log.Info("toolkit doesn't know how to Hide() widgets")
|
||||||
|
} else {
|
||||||
me.Hide(n)
|
me.Hide(n)
|
||||||
|
}
|
||||||
log.Info("tree: todo: remove child from parent")
|
log.Info("tree: todo: remove child from parent")
|
||||||
n.DeleteNode()
|
n.DeleteNode()
|
||||||
// now remove the child from the parent
|
// now remove the child from the parent
|
||||||
|
|
Loading…
Reference in New Issue