1
1

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.
Этот коммит содержится в:
Miguel de Icaza 1999-09-20 22:37:29 +00:00
родитель 19db511983
Коммит b207905d3e
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

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