summaryrefslogtreecommitdiff
path: root/combobox.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 /combobox.go
parentcfea745dc745dcb0af8704d7cdb50d9725714b04 (diff)
Fixed build errors.
Diffstat (limited to 'combobox.go')
-rw-r--r--combobox.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/combobox.go b/combobox.go
index 059422d..1e381de 100644
--- a/combobox.go
+++ b/combobox.go
@@ -8,6 +8,8 @@ import (
// #include "ui.h"
// extern void doComboboxOnSelected(uiCombobox *, void *);
+// // see golang/go#19835
+// typedef void (*comboboxCallback)(uiCombobox *, void *);
import "C"
// Combobox is a Control that represents a drop-down list of strings
@@ -25,7 +27,7 @@ func NewCombobox() *Combobox {
c.c = C.uiNewCombobox()
- C.uiComboboxOnSelected(c.c, C.doComboboxOnSelected, nil)
+ C.uiComboboxOnSelected(c.c, C.comboboxCallback(C.doComboboxOnSelected), nil)
c.ControlBase = NewControlBase(c, uintptr(unsafe.Pointer(c.c)))
return c