diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-30 21:21:55 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-30 21:21:55 -0400 |
| commit | e8a7dd0b8788f14b2ecc04ecaef8e77e4d2b68e1 (patch) | |
| tree | d24f88f40d31b7a4b67d69b0b4f3b12c87c1d6ee /dialog_darwin.go | |
| parent | 46ba0049cb80d8b6973c3146b40ceceaead710ed (diff) | |
Converted the Mac OS X backend to use uitask() instead of uitask chan func().
Diffstat (limited to 'dialog_darwin.go')
| -rw-r--r-- | dialog_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dialog_darwin.go b/dialog_darwin.go index 038c640..fe44d8f 100644 --- a/dialog_darwin.go +++ b/dialog_darwin.go @@ -19,7 +19,7 @@ func dialog_send(pchan unsafe.Pointer, res C.intptr_t) { func _msgBox(parent *Window, primarytext string, secondarytext string, style uintptr) chan int { ret := make(chan int) - uitask <- func() { + uitask(func() { var pwin C.id = nil if parent != dialogWindow { @@ -36,7 +36,7 @@ func _msgBox(parent *Window, primarytext string, secondarytext string, style uin case 1: // error C.msgBoxError(pwin, primary, secondary, unsafe.Pointer(&ret)) } - } + }) return ret } |
