diff options
| author | Jeff Carr <[email protected]> | 2023-04-23 10:45:43 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-23 10:45:43 -0500 |
| commit | 7d178283f1834ddd01123a5d5d0b160bb8d7234d (patch) | |
| tree | 029e95a3b339e3d5de281124b440f893ead0b5ca /node.go | |
| parent | 1322a011e7f5b8665b671d4c5ee4e65804ca75be (diff) | |
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
| -rw-r--r-- | node.go | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -12,24 +12,6 @@ func (n *Node) newNode(title string, t toolkit.WidgetType, custom func()) *Node newN.WidgetType = t newN.Custom = custom - // TODO: This should not be defined for each widget. This has to be stupid - // or wait a second, is this where I send something to a channel? - newN.Custom = func() { - log(debugChange, "Trying to find Window Close. widgetType =", newN.WidgetType) - if (newN.WidgetType == toolkit.Window) { - log(debugChange, "Need to delete newN here") - n.Delete(newN) - } - if (newN.Custom == nil) { - log(debugChange, "newT.Custom() == nil. Not doing anything. SEND SOMETHING TO THE CHANNEL") - return - } - log(debugChange, "newT.Custom() START SEND SOMETHING TO THE CHANNEL node =", newN.Name) - // send something to the channel here???? - newN.Custom() - log(debugChange, "newT.Custom() END SEND SOMETHING TO THE CHANNEL node =", newN.Name) - } - n.Append(newN) newN.parent = n return newN |
