From e8a7dd0b8788f14b2ecc04ecaef8e77e4d2b68e1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 30 Jun 2014 21:21:55 -0400 Subject: Converted the Mac OS X backend to use uitask() instead of uitask chan func(). --- dialog_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dialog_darwin.go') 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 } -- cgit v1.2.3