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 /spinbox.go | |
| parent | cfea745dc745dcb0af8704d7cdb50d9725714b04 (diff) | |
Fixed build errors.
Diffstat (limited to 'spinbox.go')
| -rw-r--r-- | spinbox.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,8 @@ import ( // #include "ui.h" // extern void doSpinboxOnChanged(uiSpinbox *, void *); +// // see golang/go#19835 +// typedef void (*spinboxCallback)(uiSpinbox *, void *); import "C" // Spinbox is a Control that represents a space where the user can @@ -25,7 +27,7 @@ func NewSpinbox(min int, max int) *Spinbox { s.s = C.uiNewSpinbox(C.int(min), C.int(max)) - C.uiSpinboxOnChanged(s.s, C.doSpinboxOnChanged, nil) + C.uiSpinboxOnChanged(s.s, C.spinboxCallback(C.doSpinboxOnChanged), nil) s.ControlBase = NewControlBase(s, uintptr(unsafe.Pointer(s.s))) return s |
