Return NULL if the location id is NULL (archive_get_current_location_id):

2001-06-22  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_get_current_location): Return NULL if the
	location id is NULL
	(archive_get_current_location_id): Return NULL if storing the
	snapshot results in an error

	* location.c (location_store): Add return values for error
	conditions; remove g_warning's and g_critical's
	(location_store_full_snapshot): Folded in store_snapshot_cb; don't
	call location_foreach_backend
	(location_store_full_snapshot): Return error condition; 0 on
	success, -1 if any backend failed

	* location-manager-dialog.c (location_manager_dialog_set_arg): Add
	a check to inform the user if the location manager was unable to
	form an initial configuration snapshot
This commit is contained in:
Bradford Hovinen 2001-06-22 16:34:57 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 47d682e446
commit a18fd85bba
4 changed files with 81 additions and 39 deletions

View file

@ -79,7 +79,7 @@ GtkObject *location_open (Archive *archive,
void location_close (Location *location);
void location_delete (Location *location);
void location_store (Location *location,
gint location_store (Location *location,
gchar *backend_id,
FILE *input,
StoreType store_type);
@ -139,7 +139,7 @@ const gchar *location_get_id (Location *location);
void location_set_id (Location *location, const gchar *locid);
void location_store_full_snapshot (Location *location);
gint location_store_full_snapshot (Location *location);
GList *location_get_changed_backends (Location *location,
Location *location1);