GLib.BookmarkFile.prototype.get_icon

function get_icon(uri: String): [ok: Boolean, href: String, mime_type: String] {
    // Gjs wrapper for g_bookmark_file_get_icon()
}
  

Gets the icon of the bookmark for uri.

In the event the URI cannot be found, false is returned and @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND.

Since 2.12

uri

a valid URI

ok

true if the icon for the bookmark for the URI was found. You should free the returned strings.

href

return location for the icon's location or null

mime_type

return location for the icon's MIME type or null