diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-02 10:26:18 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-02 10:27:41 -0400 |
| commit | fa880a71cce2e3d3fa6af4af0765a390b6478990 (patch) | |
| tree | 8c65ea7fa26097a46e56be74321153b823309562 /test/main.go | |
| parent | d1c0b9b29d44a0cc9f81001a53d7d4a0b3a46576 (diff) | |
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...).
Diffstat (limited to 'test/main.go')
| -rw-r--r-- | test/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/main.go b/test/main.go index 347060b..1c8f948 100644 --- a/test/main.go +++ b/test/main.go @@ -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", |
