better function names

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-02 15:11:53 -06:00
parent c22fc7b602
commit 102dfca320
1 changed files with 14 additions and 0 deletions

View File

@ -71,6 +71,20 @@ func (me *TreeInfo) SendWindowCloseEvent(n *Node) {
return
}
// this name is better, but I can't use it
// is multiple toolkit support worth this sacrifice?
// func (n *Node) SendWidgetEvent() {
// }
// The user clicked on something. Or typed something
func (me *TreeInfo) SendWidgetEvent(n *Node) {
me.SendUserEvent(n)
}
func (me *TreeInfo) SendFromUser(n *Node) {
me.SendUserEvent(n)
}
// Other goroutines must use this to access the GUI
func (me *TreeInfo) SendUserEvent(n *Node) {
if me.callback == nil {