Added common_darwin.go; moved toBOOL() there.
This commit is contained in:
parent
88a51068db
commit
cb96b8c6fd
|
@ -0,0 +1,13 @@
|
||||||
|
// 20 july 2014
|
||||||
|
|
||||||
|
package ui
|
||||||
|
|
||||||
|
// #include "objc_darwin.h"
|
||||||
|
import "C"
|
||||||
|
|
||||||
|
func toBOOL(b bool) C.BOOL {
|
||||||
|
if b == true {
|
||||||
|
return C.YES
|
||||||
|
}
|
||||||
|
return C.NO
|
||||||
|
}
|
|
@ -9,14 +9,6 @@ import (
|
||||||
// #include "objc_darwin.h"
|
// #include "objc_darwin.h"
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// TODO move to common_darwin.go
|
|
||||||
func toBOOL(b bool) C.BOOL {
|
|
||||||
if b == true {
|
|
||||||
return C.YES
|
|
||||||
}
|
|
||||||
return C.NO
|
|
||||||
}
|
|
||||||
|
|
||||||
type widgetbase struct {
|
type widgetbase struct {
|
||||||
id C.id
|
id C.id
|
||||||
parentw *window
|
parentw *window
|
||||||
|
|
Loading…
Reference in New Issue