From f7817f6987f83d84893466ee4f8a99af98ee643f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 6 Apr 2014 23:33:27 -0400 Subject: Added (untested; VM issues) code to handle Mac OS X Quit Dock menu items and other related stuff that may happen in the future. Will drop the TODO after I can test it. --- test/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/main.go') diff --git a/test/main.go b/test/main.go index 1c8f948..9df9c13 100644 --- a/test/main.go +++ b/test/main.go @@ -282,6 +282,9 @@ _=curtime case <-w.Closing: println("window closed event received") break mainloop + case <-AppQuit: + println("application quit event received") + break mainloop case <-b.Clicked: w.SetTitle(fmt.Sprintf("%v | %s | %s | %s | %s", c.Checked(), -- cgit v1.2.3