Fixed some more runtime errors.
This commit is contained in:
parent
10eefc7a61
commit
bddbe16ea9
|
@ -27,6 +27,7 @@ uiDateTimePicker *finishNewDateTimePicker(NSDatePickerElementFlags elements)
|
|||
[d->dp setDatePickerElements:elements];
|
||||
[d->dp setDatePickerMode:NSSingleDateMode];
|
||||
// TODO get date picker font
|
||||
uiDarwinMakeSingleViewControl(uiControl(d), d->dp, YES);
|
||||
|
||||
uiControl(d)->Handle = datetimepickerHandle;
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ static void windowCommitDestroy(uiControl *c)
|
|||
[w->window orderOut:w->window];
|
||||
// now destroy the child
|
||||
binSetChild(w->bin, NULL);
|
||||
if (w->child != NULL)
|
||||
uiControlDestroy(w->child);
|
||||
// now destroy the bin
|
||||
// we do this by changing the content view to a dummy view
|
||||
|
@ -129,7 +130,8 @@ static void windowSetChild(uiWindow *ww, uiControl *child)
|
|||
{
|
||||
struct window *w = (struct window *) ww;
|
||||
|
||||
binSetChild(w->bin, child);
|
||||
w->child = child;
|
||||
binSetChild(w->bin, w->child);
|
||||
}
|
||||
|
||||
static int windowMargined(uiWindow *ww)
|
||||
|
|
Loading…
Reference in New Issue