fileinfo: document the correct type for trash::orig-path
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 13 Apr 2012 20:06:16 +0000 (16:06 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Sat, 14 Apr 2012 17:09:33 +0000 (13:09 -0400)
The correct type for this attribute, as set by GVfs, is
G_FILE_ATTRIBUTE_TYPE_BYTE_STRING (which is the correct type for file
paths anyway).

https://bugzilla.gnome.org/show_bug.cgi?id=674074

gio/gfileinfo.h

index 375a078..3cc46d6 100644 (file)
@@ -800,11 +800,11 @@ typedef struct _GFileInfoClass   GFileInfoClass;
  * A key in the "trash" namespace.  When requested against
  * items in "trash:///", will return the original path to the file before it
  * was trashed. Corresponding #GFileAttributeType is
- * %G_FILE_ATTRIBUTE_TYPE_STRING.
+ * %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
  *
  * Since: 2.24.
  **/
-#define G_FILE_ATTRIBUTE_TRASH_ORIG_PATH "trash::orig-path"     /* string */
+#define G_FILE_ATTRIBUTE_TRASH_ORIG_PATH "trash::orig-path"     /* byte string */
 
 /**
  * G_FILE_ATTRIBUTE_TRASH_DELETION_DATE: