summaryrefslogtreecommitdiff
path: root/uitask_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-05 13:25:19 -0500
committerPietro Gagliardi <[email protected]>2014-03-05 13:25:19 -0500
commit011836e94de2b1ba2c9fc729649db63f715997f9 (patch)
treecc02f93769aa0e62f8d778dc7ee0f1904f403314 /uitask_unix.go
parentc0c1e091865029aa1006602d2b195b5c6c4c8dae (diff)
Have ui.Go() return on main() return on Unix.
Diffstat (limited to 'uitask_unix.go')
-rw-r--r--uitask_unix.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/uitask_unix.go b/uitask_unix.go
index 759ac1d..9b22635 100644
--- a/uitask_unix.go
+++ b/uitask_unix.go
@@ -28,7 +28,10 @@ func ui(main func()) error {
return true // don't destroy the callback
})
- go main()
+ go func() {
+ main()
+ uitask <- gtk_main_quit
+ }()
gtk_main()
return nil