diff options
author | Darin Adler <darin@src.gnome.org> | 2000-06-01 15:38:19 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-06-01 15:38:19 +0000 |
commit | 995b13fd672542d7c1ecc0b25cd0a8ae64209981 (patch) | |
tree | a816a12739659ceb8fe70f3e0b4832535c26d781 /libnautilus-extensions/nautilus-directory-metafile.c | |
parent | 043aa0112dbf4c94b27f32f35f51df8c57e364ef (diff) | |
download | nautilus-995b13fd672542d7c1ecc0b25cd0a8ae64209981.tar.gz |
Added this function. The guts was already there.
* libnautilus-extensions/nautilus-directory-metafile.c:
(nautilus_directory_set_metadata_list): Added this function.
The guts was already there.
* test/.cvsignore: Ignore some newly generated files.
Diffstat (limited to 'libnautilus-extensions/nautilus-directory-metafile.c')
-rw-r--r-- | libnautilus-extensions/nautilus-directory-metafile.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-directory-metafile.c b/libnautilus-extensions/nautilus-directory-metafile.c index d2217ad68..3a3a67adf 100644 --- a/libnautilus-extensions/nautilus-directory-metafile.c +++ b/libnautilus-extensions/nautilus-directory-metafile.c @@ -659,6 +659,34 @@ nautilus_directory_set_metadata (NautilusDirectory *directory, } } +void +nautilus_directory_set_metadata_list (NautilusDirectory *directory, + const char *list_key, + const char *list_subkey, + GList *list) +{ + MetadataValue *value; + + g_return_if_fail (NAUTILUS_IS_DIRECTORY (directory)); + g_return_if_fail (list_key != NULL); + g_return_if_fail (list_key[0] != '\0'); + g_return_if_fail (list_subkey != NULL); + g_return_if_fail (list_subkey[0] != '\0'); + + if (directory->details->metafile_read) { + if (set_metadata_list_in_metafile (directory, NULL, + list_key, list_subkey, list)) { + nautilus_directory_emit_metadata_changed (directory); + } + } else { + value = metadata_value_new_list (list); + if (set_metadata_eat_value (directory, NULL, + list_key, list_subkey, value)) { + nautilus_directory_emit_metadata_changed (directory); + } + } +} + gboolean nautilus_directory_set_file_metadata (NautilusDirectory *directory, const char *file_name, |