summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-02 10:26:18 -0400
committerPietro Gagliardi <[email protected]>2014-04-02 10:27:41 -0400
commitfa880a71cce2e3d3fa6af4af0765a390b6478990 (patch)
tree8c65ea7fa26097a46e56be74321153b823309562
parentd1c0b9b29d44a0cc9f81001a53d7d4a0b3a46576 (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...).
-rw-r--r--test/main.go1
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",