Started fixing the build.
This commit is contained in:
parent
c91b665da3
commit
8d43eb52ce
|
@ -7,6 +7,7 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// #include <stdlib.h>
|
||||||
// #include <time.h>
|
// #include <time.h>
|
||||||
// #include "ui.h"
|
// #include "ui.h"
|
||||||
// static inline struct tm *allocTimeStruct(void)
|
// static inline struct tm *allocTimeStruct(void)
|
||||||
|
@ -14,7 +15,7 @@ import (
|
||||||
// /* TODO handle error */
|
// /* TODO handle error */
|
||||||
// return (struct tm *) malloc(sizeof (struct tm));
|
// return (struct tm *) malloc(sizeof (struct tm));
|
||||||
// }
|
// }
|
||||||
// extern void doDateTimePickerChanged(uiDateTimePicker *, void *);
|
// extern void doDateTimePickerOnChanged(uiDateTimePicker *, void *);
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// DateTimePicker is a Control that represents a field where the user
|
// DateTimePicker is a Control that represents a field where the user
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// #include "ui.h"
|
// #include "ui.h"
|
||||||
// extern void doEditableComboboxOnChanged(uiCombobox *, void *);
|
// extern void doEditableComboboxOnChanged(uiEditableCombobox *, void *);
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// EditableCombobox is a Control that represents a drop-down list
|
// EditableCombobox is a Control that represents a drop-down list
|
||||||
|
|
|
@ -24,7 +24,7 @@ func NewRadioButtons() *RadioButtons {
|
||||||
|
|
||||||
r.r = C.uiNewRadioButtons()
|
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)))
|
r.ControlBase = NewControlBase(r, uintptr(unsafe.Pointer(r.r)))
|
||||||
return r
|
return r
|
||||||
|
|
Loading…
Reference in New Issue