/* Sets the icon for a given #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_ICON.  */
void g_file_info_set_icon(GFileInfo *info, GIcon *icon)
/* Sets the icon for a given #GFileInfo. See G_FILE_ATTRIBUTE_STANDARD_ICON.  */
void g_file_info_set_icon(GFileInfo *info, GIcon *icon)
{
  static guint32 attr = 0;
  GFileAttributeValue *value;
  g_return_if_fail (G_IS_FILE_INFO (info));
  g_return_if_fail (G_IS_ICON (icon));
  if (attr == 0)
    attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_ICON);
  value = g_file_info_create_value (info, attr);
  if (value)
    _g_file_attribute_value_set_object (value, G_OBJECT (icon));
}