diff options
| author | Pietro Gagliardi <[email protected]> | 2018-08-12 11:07:33 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2018-08-12 11:07:33 -0400 |
| commit | 925adc0782c4dd9b978a712b1b5645b5f31bf802 (patch) | |
| tree | 66590ea495c0c680c3dfcd22a55896c864ad35a7 /radiobuttons.go | |
| parent | cfea745dc745dcb0af8704d7cdb50d9725714b04 (diff) | |
Fixed build errors.
Diffstat (limited to 'radiobuttons.go')
| -rw-r--r-- | radiobuttons.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/radiobuttons.go b/radiobuttons.go index 59b5665..5f7505d 100644 --- a/radiobuttons.go +++ b/radiobuttons.go @@ -8,6 +8,8 @@ import ( // #include "ui.h" // extern void doRadioButtonsOnSelected(uiRadioButtons *, void *); +// // see golang/go#19835 +// typedef void (*radioButtonsCallback)(uiRadioButtons *, void *); import "C" // RadioButtons is a Control that represents a set of checkable @@ -24,7 +26,7 @@ func NewRadioButtons() *RadioButtons { r.r = C.uiNewRadioButtons() - C.uiRadioButtonsOnSelected(r.r, C.doRadioButtonsOnSelected, nil) + C.uiRadioButtonsOnSelected(r.r, C.radioButtonsCallback(C.doRadioButtonsOnSelected), nil) r.ControlBase = NewControlBase(r, uintptr(unsafe.Pointer(r.r))) return r |
