FaviconDatabase.getFavicon

Asynchronously obtains a #cairo_surface_t of the favicon for the given page URI. It returns the cached icon if it's in the database asynchronously waiting for the icon to be read from the database.

This is an asynchronous method. When the operation is finished, callback will be invoked. You can then call webkit_favicon_database_get_favicon_finish() to get the result of the operation.

You must call webkit_web_context_set_favicon_database_directory() for the #WebKitWebContext associated with this #WebKitFaviconDatabase before attempting to use this function; otherwise, webkit_favicon_database_get_favicon_finish() will return %WEBKIT_FAVICON_DATABASE_ERROR_NOT_INITIALIZED.

class FaviconDatabase
void
getFavicon
(
string pageUri
,
Cancellable cancellable
,
GAsyncReadyCallback callback
,
void* userData
)

Parameters

pageUri string

URI of the page for which we want to retrieve the favicon

cancellable Cancellable

A #GCancellable or %NULL.

callback GAsyncReadyCallback

A #GAsyncReadyCallback to call when the request is satisfied or %NULL if you don't care about the result.

userData void*

The data to pass to @callback.

Meta