Fixed the same oversight as the previous commit on the Windows and OS X backends. Added comments to document the oversight.

This commit is contained in:
Pietro Gagliardi 2015-04-28 21:35:29 -04:00
parent 699cd12a19
commit da2ad417a0
3 changed files with 11 additions and 0 deletions

View File

@ -112,6 +112,9 @@ static void containerShow(uiControl *cc)
containerView *c = (containerView *) (cc->Internal);
[c setHidden:NO];
// hidden controls don't count in boxes and grids
if (c.containerParent != NULL)
uiContainerUpdate(c.containerParent);
c.containerHidden = 0;
}
@ -120,6 +123,8 @@ static void containerHide(uiControl *cc)
containerView *c = (containerView *) (cc->Internal);
[c setHidden:YES];
if (c.containerParent != NULL)
uiContainerUpdate(c.containerParent);
c.containerHidden = 1;
}

View File

@ -177,6 +177,7 @@ static void containerShow(uiControl *cc)
// don't use gtk_widget_show_all(); that'll show every widget, including ones hidden by the user
gtk_widget_show(GTK_WIDGET(c));
// hidden controls don't count in boxes and grids
if (c->parent != NULL)
uiContainerUpdate(c->parent);
c->hidden = 0;

View File

@ -178,6 +178,9 @@ static void containerShow(uiControl *cc)
struct container *c = (struct container *) (cc->Internal);
ShowWindow(c->hwnd, SW_SHOW);
// hidden controls don't count in boxes and grids
if (c->parent != NULL)
uiContainerUpdate(c->parent);
c->hidden = 0;
}
@ -186,6 +189,8 @@ static void containerHide(uiControl *cc)
struct container *c = (struct container *) (cc->Internal);
ShowWindow(c->hwnd, SW_HIDE);
if (c->parent != NULL)
uiContainerUpdate(c->parent);
c->hidden = 1;
}