summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index 0d09007..5e21d02 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -76,10 +76,8 @@ func (tk *guiWidget) doWindowClick() {
func (tk *guiWidget) doWidgetClick(w int, h int) {
switch tk.node.WidgetType {
case widget.Window:
- // tk.dumpWidget("doWidgetClick()")
tk.doWindowClick()
return
- case widget.Group:
case widget.Checkbox:
if tk.node.State.Checked {
log.Log(WARN, "checkbox is being set to false")
@@ -91,33 +89,12 @@ func (tk *guiWidget) doWidgetClick(w int, h int) {
tk.setCheckbox()
}
me.myTree.SendUserEvent(tk.node)
- case widget.Grid:
- /*
- newR := tk.realGocuiSize()
- tk.placeGrid(newR.w0, newR.h0)
- tk.showWidgets()
- */
- case widget.Box:
- /*
- if tk.node.State.Direction == widget.Horizontal {
- log.Log(GOCUI, "BOX IS HORIZONTAL", tk.String())
- } else {
- log.Log(GOCUI, "BOX IS VERTICAL", tk.String())
- }
- tk.placeWidgets(tk.startW, tk.startH)
- tk.toggleTree()
- */
case widget.Button:
me.myTree.SendFromUser(tk.node)
case widget.Combobox:
tk.showDropdown()
case widget.Dropdown:
tk.showDropdown()
- case widget.Stdout:
- /*
- log.Log(GOCUI, "stdout widget found!")
- tk.dumpWidget("stdout click")
- */
case widget.Flag:
tk.dropdownClicked(w, h)
default: