1999-09-09 Federico Mena Quintero <federico@redhat.com>

* gcorba.c (WindowFactory_close_invalid_windows): Doh.  Walk the
	list properly, since it may change as we delete windows.
This commit is contained in:
Miguel de Icaza 1999-09-10 01:14:29 +00:00
parent 1dd842ad0b
commit 3c37665ce8
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-09-09 Federico Mena Quintero <federico@redhat.com>
* gcorba.c (WindowFactory_close_invalid_windows): Doh. Walk the
list properly, since it may change as we delete windows.
1999-09-09 Federico Mena Quintero <federico@redhat.com>
* gmc-client.c: New file. This is a small program to which you

View File

@ -276,8 +276,10 @@ WindowFactory_close_invalid_windows (PortableServer_Servant servant,
* fails, then we destroy the panel's window.
*/
for (l = containers; l; l = l->next) {
l = containers;
while (l) {
pc = l->data;
l = l->next;
if (mc_chdir (pc->panel->cwd) != 0)
gnome_close_panel (GTK_WIDGET (pc->panel->xwindow), pc->panel);