NULL with error filled inHandle.newFromGfileSync
rsvg.handle.Handle newFromGfileSync(gio.file.File file, rsvg.types.HandleFlags flags, gio.cancellable.Cancellable cancellable = null)Creates a new [rsvg.handle.Handle] for file.
This function sets the "base file" of the handle to be file itself, so SVG elements like <image> which reference external resources will be resolved relative to the location of file.
If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error [gio.types.IOErrorEnum.Cancelled] will be returned in error.
Parameters
file | a [gio.file.File] |
flags | flags from [rsvg.types.HandleFlags] |
cancellable | a [gio.cancellable.Cancellable], or NULL |
Returns
a new [rsvg.handle.Handle] on success, or
Throws
[ErrorWrap]