Handle.close

This is used after calling rsvg.handle.Handle.write to indicate that there is no more data to consume, and to start the actual parsing of the SVG document. The only reason to call this function is if you use use rsvg.handle.Handle.write to feed data into the handle; if you use the other methods like rsvg.handle.Handle.newFromFile or rsvg.handle.Handle.readStreamSync, then you do not need to call this function.

This will return TRUE if the loader closed successfully and the SVG data was parsed correctly. Note that handle isn't freed until gobject.object.ObjectG.unref is called.

More...
class Handle
bool
close
()

Return Value

Type: bool

TRUE on success, or FALSE on error.

Detailed Description

Deprecated: Use rsvg.handle.Handle.readStreamSync or the constructor functions rsvg.handle.Handle.newFromGfileSync or rsvg.handle.Handle.newFromStreamSync. See the deprecation notes for rsvg.handle.Handle.write for more information.