Fixed some other flaws.

This commit is contained in:
Pietro Gagliardi 2015-06-29 20:37:55 -04:00
parent e22439c0a2
commit b86fe98abd
3 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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)