diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-19 22:18:53 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-19 22:18:53 -0400 |
| commit | 4e820e86fca050a7f7b25449629573ca18c0080e (patch) | |
| tree | 346d2191b95549fb0cf81762b31bc20c224a2a64 /uitask_unix.go | |
| parent | 7b7005ec19d7dd8ffe282d65215a5832b9153250 (diff) | |
Moved gtk_main() such that uitask_unix.go calls it directly via cgo. This is in preparation for the next two commits, which will remove the #cgo directives from all files except the uitask_*.go files, since they're being concatenated across files.
Diffstat (limited to 'uitask_unix.go')
| -rw-r--r-- | uitask_unix.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/uitask_unix.go b/uitask_unix.go index ccad346..0ff07f4 100644 --- a/uitask_unix.go +++ b/uitask_unix.go @@ -9,6 +9,10 @@ import ( "runtime" ) +// #cgo pkg-config: gtk+-3.0 +// #include "gtk_unix.h" +import "C" + var uitask chan func() func ui(main func()) error { @@ -39,6 +43,6 @@ func ui(main func()) error { uitask <- gtk_main_quit }() - gtk_main() + C.gtk_main() return nil } |
