This is used to unset an attribute in g_file_set_attributes_from_info.
((GTypeInstance *) attr->u.obj),
attr->u.obj);
break;
+ case G_FILE_ATTRIBUTE_TYPE_INVALID:
+ str = g_strdup ("<unset>");
+ break;
default:
g_warning ("Invalid type in GFileInfo attribute");
str = g_strdup ("<invalid>");
case G_FILE_ATTRIBUTE_TYPE_INT64:
value->u.int64 = *(gint64 *)value_p;
break;
+
+ case G_FILE_ATTRIBUTE_TYPE_INVALID:
+ break;
+
default:
g_warning ("Unknown type specified in g_file_info_set_attribute\n");
break;
* Gets the attribute type for an attribute key.
*
* Returns: a #GFileAttributeType for the given @attribute, or
- * %G_FILE_ATTRIBUTE_TYPE_INVALID if the key is invalid.
+ * %G_FILE_ATTRIBUTE_TYPE_INVALID if the key is not set.
**/
GFileAttributeType
g_file_info_get_attribute_type (GFileInfo *info,