Pixbuf.getFileInfoAsync

Asynchronously parses an image file far enough to determine its format and size.

For more details see Pixbuf.getFileInfo, which is the synchronous version of this function.

When the operation is finished, callback will be called in the main thread. You can then call Pixbuf.getFileInfoFinish to get the result of the operation.

class Pixbuf
static
void
getFileInfoAsync

Parameters

filename string

The name of the file to identify

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

callback GAsyncReadyCallback

a GAsyncReadyCallback to call when the file info is available

userData void*

the data to pass to the callback function

Meta

Since

2.32