diff options
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -44,7 +44,7 @@ func findByXYreal(widget *guiWidget, w int, h int) []*guiWidget { if (widget.gocuiSize.w0 <= w) && (w <= widget.gocuiSize.w1) && (widget.gocuiSize.h0 <= h) && (h <= widget.gocuiSize.h1) { widgets = append(widgets, widget) - // log.Log(GOCUI, "findByXY() found", widget.WidgetType, w, h) + // log.Log(GOCUI, "findByXY() found", widget.node.WidgetType, w, h) } } @@ -69,20 +69,20 @@ func findUnderMouse() *guiWidget { // up the window widgets, then it will ignore everything else // and allow the user (hopefully) to redraw or switch windows // TODO: display the window widgets on top - if w.WidgetType == widget.Window { + if w.node.WidgetType == widget.Window { return w } } // return anything else that is interactive for _, w := range widgets { - if w.WidgetType == widget.Button { + if w.node.WidgetType == widget.Button { return w } - if w.WidgetType == widget.Combobox { + if w.node.WidgetType == widget.Combobox { return w } - if w.WidgetType == widget.Checkbox { + if w.node.WidgetType == widget.Checkbox { return w } w.dumpWidget("findUnderMouse() found something unknown") |
