summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/find.go b/find.go
index 2fa7f89..8fb8318 100644
--- a/find.go
+++ b/find.go
@@ -61,7 +61,7 @@ func (tk *guiWidget) findByXYreal(w int, h int) []*guiWidget {
if tk.full.inRect(w, h) {
widgets = append(widgets, tk)
}
- // log.Log(GOCUI, "findByXY() found", widget.node.WidgetType, w, h)
+ // log.Log(GOCUI, "findByXY() found", widget.WidgetType(), w, h)
// }
// }
// tk.verifyRect()
@@ -84,7 +84,7 @@ func findWindows() []*guiWidget {
func (tk *guiWidget) findWindows() []*guiWidget {
var found []*guiWidget
- if tk.node.WidgetType == widget.Window {
+ if tk.WidgetType() == widget.Window {
found = append(found, tk)
}
@@ -98,8 +98,8 @@ func (tk *guiWidget) findWindows() []*guiWidget {
// This widget is always in the background and covers the whole screen.
// gocui seems to not return mouse events unless there is something there
func (tk *guiWidget) findBG() *guiWidget {
- if tk.node.WidgetType == widget.Stdout {
- if tk.node.WidgetId != me.stdout.wId {
+ if tk.WidgetType() == widget.Stdout {
+ if tk.WidgetId() != me.stdout.wId {
tk.isBG = true
return tk
}
@@ -202,7 +202,7 @@ func ctrlDown(g *gocui.Gui, v *gocui.View) error {
}
func (tk *guiWidget) findParentWindow() *guiWidget {
- if tk.node.WidgetType == widget.Window {
+ if tk.WidgetType() == widget.Window {
return tk
}
if tk.parent == nil {