diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-12-08 16:12:53 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-12-08 16:12:53 +0100 |
commit | 474688c59ab1815776dc5953f6898d60b95d258f (patch) | |
tree | fb85e6b5e1592fbe07cf2a1c8b18ebeab16c56ff | |
parent | 5d9e3751efb99e38ac0dc9dadc29c73893f01b79 (diff) | |
download | nautilus-wip/csoriano/metadata.tar.gz |
-rw-r--r-- | src/nautilus-vfs-file.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nautilus-vfs-file.c b/src/nautilus-vfs-file.c index 0fff497f3..ba0f7d319 100644 --- a/src/nautilus-vfs-file.c +++ b/src/nautilus-vfs-file.c @@ -123,6 +123,7 @@ set_metadata_callback (GObject *source_object, NULL, &error); + g_print ("$$$$$$ metadata response\n"); if (res) { g_file_query_info_async (G_FILE (source_object), @@ -134,6 +135,7 @@ set_metadata_callback (GObject *source_object, } else { + g_print ("$$$$$$ metadata error\n"); nautilus_file_unref (file); g_error_free (error); } @@ -151,12 +153,15 @@ vfs_file_set_metadata (NautilusFile *file, info = g_file_info_new (); gio_key = g_strconcat ("metadata::", key, NULL); + g_print ("file %s key %s value %s\n", nautilus_file_get_uri (file), key, value); if (value != NULL) { + g_print ("setting attribute\n"); g_file_info_set_attribute_string (info, gio_key, value); } else { + g_print ("unsetting attribute\n"); /* Unset the key */ g_file_info_set_attribute (info, gio_key, G_FILE_ATTRIBUTE_TYPE_INVALID, @@ -187,6 +192,7 @@ vfs_file_set_metadata_as_list (NautilusFile *file, info = g_file_info_new (); + g_print ("AS LIST file %s key %s value %s\n", nautilus_file_get_uri (file), key, value); gio_key = g_strconcat ("metadata::", key, NULL); g_file_info_set_attribute_stringv (info, gio_key, value); g_free (gio_key); |