Removed the uiContainerUpdate()s from bin.c and fixed one wrong one in box.c. For bin.c, uiContainerUpdate() needs to explicitly be called by users.

This commit is contained in:
Pietro Gagliardi 2015-05-11 12:35:28 -04:00
parent 2c9e63d8d2
commit 20b76fe211
2 changed files with 1 additions and 4 deletions

2
bin.c
View File

@ -92,7 +92,6 @@ static void binSetMainControl(uiBin *bb, uiControl *mainControl)
b->mainControl = mainControl;
if (b->mainControl != NULL)
uiControlSetParent(b->mainControl, uiContainer(b));
uiContainerUpdate(uiContainer(b));
}
static void binSetMargins(uiBin *bb, intmax_t left, intmax_t top, intmax_t right, intmax_t bottom)
@ -103,7 +102,6 @@ static void binSetMargins(uiBin *bb, intmax_t left, intmax_t top, intmax_t right
b->marginRight = right;
b->marginTop = top;
b->marginBottom = bottom;
uiContainerUpdate(uiContainer(b));
}
uiBin *newBin(void)

3
box.c
View File

@ -254,8 +254,7 @@ static void boxSetPadded(uiBox *ss, int padded)
struct box *b = (struct box *) ss;
b->padded = padded;
if (b->parent != NULL)
uiContainerUpdate(b->parent);
uiContainerUpdate(uiContainer(b));
}
uiBox *uiNewHorizontalBox(void)