Re-enable caching mechanism

2001-07-31  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_get_current_location_id): Re-enable caching
	mechanism
This commit is contained in:
Bradford Hovinen 2001-07-31 17:19:46 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 478de4ee41
commit d30dd82590
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,8 @@
2001-07-31 Bradford Hovinen <hovinen@ximian.com> 2001-07-31 Bradford Hovinen <hovinen@ximian.com>
* archive.c (archive_get_current_location_id): Re-enable caching
mechanism
* bonobo-config-archiver.c (pb_get_fn): Use * bonobo-config-archiver.c (pb_get_fn): Use
location_get_config_log rather than config_log_open; don't destroy location_get_config_log rather than config_log_open; don't destroy
the log the log

View file

@ -515,9 +515,7 @@ archive_get_current_location_id (Archive *archive)
g_return_val_if_fail (archive != NULL, NULL); g_return_val_if_fail (archive != NULL, NULL);
g_return_val_if_fail (IS_ARCHIVE (archive), NULL); g_return_val_if_fail (IS_ARCHIVE (archive), NULL);
#if 0
if (archive->current_location_id == NULL) { if (archive->current_location_id == NULL) {
#endif
if (archive->is_global) if (archive->is_global)
archive->current_location_id = archive->current_location_id =
gnome_config_get_string_with_default gnome_config_get_string_with_default
@ -542,9 +540,7 @@ archive_get_current_location_id (Archive *archive)
return NULL; return NULL;
} }
} }
#if 0
} }
#endif
return archive->current_location_id; return archive->current_location_id;
} }