From 925adc0782c4dd9b978a712b1b5645b5f31bf802 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 12 Aug 2018 11:07:33 -0400 Subject: Fixed build errors. --- combobox.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'combobox.go') 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 -- cgit v1.2.3