summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2018-08-12 09:24:51 -0400
committerPietro Gagliardi <[email protected]>2018-08-12 09:24:51 -0400
commit8d43eb52cef37f870c469224b30ea23bec48c3f1 (patch)
tree2be626cc00e71d0117a7c2582c5c814bd20235c6
parentc91b665da35ce987c2143ebbc141c7d04b6c27c5 (diff)
Started fixing the build.
-rw-r--r--datetimepicker.go3
-rw-r--r--editablecombobox.go2
-rw-r--r--radiobuttons.go2
3 files changed, 4 insertions, 3 deletions
diff --git a/datetimepicker.go b/datetimepicker.go
index cbdd215..0859a32 100644
--- a/datetimepicker.go
+++ b/datetimepicker.go
@@ -7,6 +7,7 @@ import (
"unsafe"
)
+// #include <stdlib.h>
// #include <time.h>
// #include "ui.h"
// static inline struct tm *allocTimeStruct(void)
@@ -14,7 +15,7 @@ import (
// /* TODO handle error */
// return (struct tm *) malloc(sizeof (struct tm));
// }
-// extern void doDateTimePickerChanged(uiDateTimePicker *, void *);
+// extern void doDateTimePickerOnChanged(uiDateTimePicker *, void *);
import "C"
// DateTimePicker is a Control that represents a field where the user
diff --git a/editablecombobox.go b/editablecombobox.go
index 53ea839..31db150 100644
--- a/editablecombobox.go
+++ b/editablecombobox.go
@@ -7,7 +7,7 @@ import (
)
// #include "ui.h"
-// extern void doEditableComboboxOnChanged(uiCombobox *, void *);
+// extern void doEditableComboboxOnChanged(uiEditableCombobox *, void *);
import "C"
// EditableCombobox is a Control that represents a drop-down list
diff --git a/radiobuttons.go b/radiobuttons.go
index bbf28d3..59b5665 100644
--- a/radiobuttons.go
+++ b/radiobuttons.go
@@ -24,7 +24,7 @@ func NewRadioButtons() *RadioButtons {
r.r = C.uiNewRadioButtons()
- C.uiRadioButtonsOnChanged(r.r, C.doRadioButtonsOnChanged, nil)
+ C.uiRadioButtonsOnSelected(r.r, C.doRadioButtonsOnSelected, nil)
r.ControlBase = NewControlBase(r, uintptr(unsafe.Pointer(r.r)))
return r