[GB.GTK]
* BUG: Container.Children.Clear() should work correctly now. git-svn-id: svn://localhost/gambas/trunk@4205 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
0a6e293d6f
commit
2514d47146
1 changed files with 9 additions and 4 deletions
|
@ -117,10 +117,15 @@ END_PROPERTY
|
||||||
BEGIN_METHOD_VOID(ContainerChildren_Clear)
|
BEGIN_METHOD_VOID(ContainerChildren_Clear)
|
||||||
|
|
||||||
gContainer *cont = WIDGET->proxyContainer();
|
gContainer *cont = WIDGET->proxyContainer();
|
||||||
int i;
|
gControl *child;
|
||||||
|
|
||||||
for (i = 0; i < cont->childCount(); i++)
|
for(;;)
|
||||||
cont->child(i)->destroy();
|
{
|
||||||
|
child = cont->child(0);
|
||||||
|
if (!child)
|
||||||
|
break;
|
||||||
|
child->destroy();
|
||||||
|
}
|
||||||
|
|
||||||
END_METHOD
|
END_METHOD
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue