From fa880a71cce2e3d3fa6af4af0765a390b6478990 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 2 Apr 2014 10:26:18 -0400 Subject: 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...). --- test/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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", -- cgit v1.2.3