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

* 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 22:37:29 +00:00
parent 19db511983
commit b207905d3e
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,10 @@
1999-09-20 Federico Mena Quintero <federico@redhat.com>
* 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.
The following is a patch from Volker Braun
<volker.braun@physik.hu-berlin.de> to fix column resizing in the
file panels.

View File

@ -73,7 +73,7 @@ load_panel_info (char *file, char *section)
gnome_config_push_prefix (prefix);
cwd = gnome_config_get_string ("cwd");
if (cwd) {
if (!cwd) {
g_warning ("Could not read panel data for \"%s\"", prefix);
gnome_config_pop_prefix ();
g_free (prefix);
@ -151,6 +151,9 @@ load_session_info (char *filename)
while ((iterator = gnome_config_iterator_next (iterator, &key, &value)) != NULL)
if (key && strncmp (key, "panel ", 6) == 0) {
pi = load_panel_info (filename, key);
if (!pi)
continue;
panels = g_slist_prepend (panels, pi);
g_free (key);
}