Started to optimize container updating. Removed container updates from each new control set parent.

This commit is contained in:
Pietro Gagliardi 2015-05-11 12:16:28 -04:00
parent a625cc30ad
commit df376a5e0b
3 changed files with 0 additions and 12 deletions

View File

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

View File

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

View File

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