summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-06 23:33:27 -0400
committerPietro Gagliardi <[email protected]>2014-04-06 23:33:27 -0400
commitf7817f6987f83d84893466ee4f8a99af98ee643f (patch)
treef5562d591887582e1fd720bbf86c2eb83c7fbbaa /test
parentaf770340c9d73a60a1484fd3793ab3a2d4e1076b (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/main.go3
1 files changed, 3 insertions, 0 deletions
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(),