==> ChangeLog <==

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

	* gcorba.c (WindowFactory_get_windows_by_directory): Fill in the
	sequence correctly.

	* gsession.c (load_panel_info): Doh.  Fix test for presence of the
	cwd info.
	(load_session_info): If we could not load the panel info, do not
	insert bogus data in the list.
This commit is contained in:
Miguel de Icaza 1999-09-20 23:29:45 +00:00
parent b207905d3e
commit 088cd306b7
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,8 @@
1999-09-20 Federico Mena Quintero <federico@redhat.com>
* gcorba.c (WindowFactory_get_windows_by_directory): Fill in the
sequence correctly.
* gsession.c (load_panel_info): Doh. Fix test for presence of the
cwd info.
(load_session_info): If we could not load the panel info, do not

View File

@ -324,11 +324,13 @@ WindowFactory_get_windows_by_directory (PortableServer_Servant servant,
seq->_length = n;
seq->_buffer = CORBA_sequence_GNOME_FileManager_Window_allocbuf (n);
for (l = containers, i = 0; l; l = l->next, i++) {
i = 0;
for (l = containers; l; l = l->next) {
pc = l->data;
if (strcmp (pc->panel->cwd, dir) == 0)
seq->_buffer[i] = window_reference_from_panel (pc->panel, ev);
seq->_buffer[i++] = window_reference_from_panel (pc->panel, ev);
}
return seq;