summaryrefslogtreecommitdiff
path: root/entry.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-12 11:07:33 -0400
committerPietro Gagliardi <[email protected]>2018-08-12 11:07:33 -0400
commit925adc0782c4dd9b978a712b1b5645b5f31bf802 (patch)
tree66590ea495c0c680c3dfcd22a55896c864ad35a7 /entry.go
parentcfea745dc745dcb0af8704d7cdb50d9725714b04 (diff)
Fixed build errors.
Diffstat (limited to 'entry.go')
-rw-r--r--entry.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/entry.go b/entry.go
index 2b6cc11..52da537 100644
--- a/entry.go
+++ b/entry.go
@@ -12,6 +12,8 @@ import (
// #include "ui.h"
// extern void doEntryOnChanged(uiEntry *, void *);
+// // see golang/go#19835
+// typedef void (*entryCallback)(uiEntry *, void *);
import "C"
// Entry is a Control that represents a space that the user can
@@ -27,7 +29,7 @@ func finishNewEntry(ee *C.uiEntry) *Entry {
e.e = ee
- C.uiEntryOnChanged(e.e, C.doEntryOnChanged, nil)
+ C.uiEntryOnChanged(e.e, C.entryCallback(C.doEntryOnChanged), nil)
e.ControlBase = NewControlBase(e, uintptr(unsafe.Pointer(e.e)))
return e