Fixed some other flaws.
This commit is contained in:
parent
e22439c0a2
commit
b86fe98abd
|
@ -180,6 +180,7 @@ uiControl *newHolder(void)
|
|||
h = (struct holder *) uiNewControl(holderType());
|
||||
|
||||
h->cw = containerWidget(uiMakeContainer(uiControl(h)));
|
||||
h->cw->c = NULL; // but don't make it manage ourselves
|
||||
|
||||
uiControl(h)->Handle = holderHandle;
|
||||
|
||||
|
|
|
@ -11,9 +11,12 @@ struct radiobuttons {
|
|||
|
||||
uiDefineControlType(uiRadioButtons, uiTypeRadioButtons, struct radiobuttons)
|
||||
|
||||
// TODO note that the handle of a uiRadioButtons is undefined
|
||||
static uintptr_t radiobuttonsHandle(uiControl *c)
|
||||
{
|
||||
return 0;
|
||||
struct radiobuttons *r = (struct radiobuttons *) c;
|
||||
|
||||
return (uintptr_t) (r->boxWidget);
|
||||
}
|
||||
|
||||
static void radiobuttonsAppend(uiRadioButtons *rr, const char *text)
|
||||
|
|
|
@ -16,7 +16,7 @@ static uintptr_t spinboxHandle(uiControl *c)
|
|||
{
|
||||
struct spinbox *s = (struct spinbox *) c;
|
||||
|
||||
return PUT_CODE_HERE;
|
||||
return (uintptr_t) (s->widget);
|
||||
}
|
||||
|
||||
static void defaultOnChanged(uiSpinbox *s, void *data)
|
||||
|
|
Loading…
Reference in New Issue