Gio.FileInfo.prototype.set_icon

function set_icon(icon: Gio.Icon): void {
    // Gjs wrapper for g_file_info_set_icon()
}
  

Sets the icon for a given Gio.FileInfo. See %G_FILE_ATTRIBUTE_STANDARD_ICON.

icon

a Gio.Icon.