summaryrefslogtreecommitdiff
path: root/event.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 04:08:11 -0600
committerJeff Carr <[email protected]>2024-01-18 04:08:11 -0600
commita78eadea024c2b283b45f1711aeda39d60deab22 (patch)
tree9bc410a7fa97ffa03fcb918efe8b477f864c2865 /event.go
parent3ea3dd10db0e728240fc659bdd33c622d33e46b4 (diff)
pathsv0.0.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'event.go')
-rw-r--r--event.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/event.go b/event.go
index 845b47b..d2383af 100644
--- a/event.go
+++ b/event.go
@@ -13,11 +13,11 @@ package tree
import (
"go.wit.com/log"
- "go.wit.com/lib/widget"
+ "go.wit.com/widget"
)
func (me *TreeInfo) DoEnableDebugger() {
- if (me.callback == nil) {
+ if me.callback == nil {
log.Warn("DoUserEvent() toolkit panic() callback == nil")
return
}
@@ -29,7 +29,7 @@ func (me *TreeInfo) DoEnableDebugger() {
}
func (me *TreeInfo) DoToolkitLoad(s string) {
- if (me.callback == nil) {
+ if me.callback == nil {
log.Warn("DoUserEvent() toolkit load callback == nil")
return
}
@@ -44,7 +44,7 @@ func (me *TreeInfo) DoToolkitLoad(s string) {
}
func (me *TreeInfo) DoToolkitPanic() {
- if (me.callback == nil) {
+ if me.callback == nil {
log.Warn("DoUserEvent() toolkit panic() callback == nil")
return
}
@@ -58,7 +58,7 @@ func (me *TreeInfo) DoToolkitPanic() {
}
func (me *TreeInfo) DoWindowCloseEvent(n *Node) {
- if (me.callback == nil) {
+ if me.callback == nil {
log.Warn("DoUserEvent() callback == nil", n.WidgetId)
return
}
@@ -73,7 +73,7 @@ func (me *TreeInfo) DoWindowCloseEvent(n *Node) {
// Other goroutines must use this to access the GUI
func (me *TreeInfo) DoUserEvent(n *Node) {
- if (me.callback == nil) {
+ if me.callback == nil {
log.Warn("DoUserEvent() callback == nil", n.WidgetId)
return
}