/* Returns: (transfer none): #GIcon for the given @info.  */
GIcon* g_file_info_get_icon(GFileInfo *info)
/* Returns: (transfer none): #GIcon for the given @info.  */
GIcon* g_file_info_get_icon(GFileInfo *info)
{
  static guint32 attr = 0;
  GFileAttributeValue *value;
  GObject *obj;
  g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
  if (attr == 0)
    attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_ICON);
  value = g_file_info_find_value (info, attr);
  obj = _g_file_attribute_value_get_object (value);
  if (G_IS_ICON (obj))
    return G_ICON (obj);
  return NULL;
}