Started to optimize container updating. Removed container updates from each new control set parent.
This commit is contained in:
parent
a625cc30ad
commit
df376a5e0b
|
@ -46,10 +46,6 @@ static void singleSetParent(uiControl *c, uiContainer *parent)
|
|||
parentView = (NSView *) uiControlHandle(uiControl(s->parent));
|
||||
[parentView addSubview:s->immediate];
|
||||
}
|
||||
if (oldparent != NULL)
|
||||
uiContainerUpdate(oldparent);
|
||||
if (s->parent != NULL)
|
||||
uiContainerUpdate(s->parent);
|
||||
}
|
||||
|
||||
// also good for NSBox and NSProgressIndicator
|
||||
|
|
|
@ -49,10 +49,6 @@ static void singleSetParent(uiControl *c, uiContainer *parent)
|
|||
newcontainer = GTK_CONTAINER(uiControlHandle(uiControl(s->parent)));
|
||||
gtk_container_add(newcontainer, s->immediate);
|
||||
}
|
||||
if (oldparent != NULL)
|
||||
uiContainerUpdate(oldparent);
|
||||
if (s->parent != NULL)
|
||||
uiContainerUpdate(s->parent);
|
||||
}
|
||||
|
||||
static void singlePreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height)
|
||||
|
|
|
@ -45,10 +45,6 @@ static void singleSetParent(uiControl *c, uiContainer *parent)
|
|||
newParentHWND = (HWND) uiControlHandle(uiControl(s->parent));
|
||||
if (SetParent(s->hwnd, newParentHWND) == NULL)
|
||||
logLastError("error setting control parent in singleSetParent()");
|
||||
if (oldparent != NULL)
|
||||
uiContainerUpdate(oldparent);
|
||||
if (s->parent != NULL)
|
||||
uiContainerUpdate(s->parent);
|
||||
}
|
||||
|
||||
static void singleResize(uiControl *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d)
|
||||
|
|
Loading…
Reference in New Issue