summaryrefslogtreecommitdiff
path: root/andlabs/delete.go
diff options
context:
space:
mode:
Diffstat (limited to 'andlabs/delete.go')
-rw-r--r--andlabs/delete.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/andlabs/delete.go b/andlabs/delete.go
index d528b66..7d29bf2 100644
--- a/andlabs/delete.go
+++ b/andlabs/delete.go
@@ -3,8 +3,8 @@ package main
// if you include more than just this import
// then your plugin might be doing something un-ideal (just a guess from 2023/02/27)
import (
+ "go.wit.com/lib/widget"
"go.wit.com/log"
- "go.wit.com/gui/widget"
)
// delete the child widget from the parent
@@ -16,7 +16,7 @@ func (n *node) destroy() {
pt := n.parent.tk
ct := n.tk
- if (ct == nil) {
+ if ct == nil {
log.Log(NOW, "delete FAILED (ct = mapToolkit[c] == nil) for c", pId, cId)
// this pukes out a whole universe of shit
// listMap()
@@ -30,7 +30,7 @@ func (n *node) destroy() {
pt.Dump(true)
log.Log(NOW, "Child:")
ct.Dump(true)
- if (pt.uiBox == nil) {
+ if pt.uiBox == nil {
log.Log(NOW, "Don't know how to destroy this")
} else {
log.Log(NOW, "Fuck it, destroy the whole box", n.parent.progname)
@@ -46,7 +46,7 @@ func (n *node) destroy() {
log.Log(NOW, "Should delete Window here:", n.progname)
default:
log.Log(NOW, "Fuckit, let's destroy a button")
- if (ct.uiButton != nil) {
+ if ct.uiButton != nil {
pt.uiBox.Delete(4)
ct.uiButton.Destroy()
}