/* Sets the file type in a #GFileInfo to @type. See G_FILE_ATTRIBUTE_STANDARD_TYPE.  */
void g_file_info_set_file_type(GFileInfo *info, GFileType type)
/* Sets the file type in a #GFileInfo to @type. See G_FILE_ATTRIBUTE_STANDARD_TYPE.  */
void g_file_info_set_file_type(GFileInfo *info, GFileType type)
{
  static guint32 attr = 0;
  GFileAttributeValue *value;
  g_return_if_fail (G_IS_FILE_INFO (info));
  if (attr == 0)
    attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_TYPE);
  value = g_file_info_create_value (info, attr);
  if (value)
    _g_file_attribute_value_set_uint32 (value, type);
}