FIxed compilation errors in the Mac OS X build. It works, but I still need to fix dialogs before I can push anything.
This commit is contained in:
parent
580b06638f
commit
3ade409dde
|
@ -9,7 +9,7 @@
|
||||||
#define to(T, x) ((T *) (x))
|
#define to(T, x) ((T *) (x))
|
||||||
#define toNSWindow(x) to(NSWindow, (x))
|
#define toNSWindow(x) to(NSWindow, (x))
|
||||||
|
|
||||||
static void alert(id parent, NSString *primary, NSString *secondary, NSAlertStyle style)
|
static intptr_t alert(id parent, NSString *primary, NSString *secondary, NSAlertStyle style)
|
||||||
{
|
{
|
||||||
NSAlert *box;
|
NSAlert *box;
|
||||||
|
|
||||||
|
|
|
@ -308,15 +308,15 @@ func (s *sysData) len() int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sysData) setAreaSize(width int, height int) {
|
func (s *sysData) setAreaSize(width int, height int) {
|
||||||
return C.setAreaSize(s.id, C.intptr_t(width), C.intptr_t(height))
|
C.setAreaSize(s.id, C.intptr_t(width), C.intptr_t(height))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sysData) repaintAll() {
|
func (s *sysData) repaintAll() {
|
||||||
return C.display(s.id)
|
C.display(s.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sysData) center() {
|
func (s *sysData) center() {
|
||||||
return C.center(s.id)
|
C.center(s.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sysData) setChecked(checked bool) {
|
func (s *sysData) setChecked(checked bool) {
|
||||||
|
|
|
@ -4,7 +4,6 @@ package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -32,7 +31,7 @@ func ui() {
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case f := range uitask:
|
case f := <-uitask:
|
||||||
C.douitask(appDelegate, unsafe.Pointer(&f))
|
C.douitask(appDelegate, unsafe.Pointer(&f))
|
||||||
case <-Stop:
|
case <-Stop:
|
||||||
C.breakMainLoop()
|
C.breakMainLoop()
|
||||||
|
|
Loading…
Reference in New Issue