Added a println() to the main test window to signal that window closing has happened. This is used for ensuring that closing programs from a task switcher works as expected (that is, that the appropriate w.Closing event is triggered if an individual window is asked to be closed, and something else if an application as a whole is...).

This commit is contained in:
Pietro Gagliardi 2014-04-02 10:26:18 -04:00
parent d1c0b9b29d
commit fa880a71cc
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ mainloop:
// l.SetText(curtime.String())
_=curtime
case <-w.Closing:
println("window closed event received")
break mainloop
case <-b.Clicked:
w.SetTitle(fmt.Sprintf("%v | %s | %s | %s | %s",