better function names
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
c22fc7b602
commit
102dfca320
14
event.go
14
event.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue