4.94 <GtkSvgError>

Enumeration: <GtkSvgError>

Error codes in the GTK_SVG_ERROR domain for errors that happen during parsing or rendering of SVG.

Members

invalid-syntax

The XML syntax is broken in some way

invalid-element

An XML element is invalid (either because it is not part of SVG, or because it is in the wrong place, or because it not implemented in GTK)

invalid-attribute

An attribute is invalid (either because it is not part of SVG, or because it is not implemented in GTK, or its value is problematic)

missing-attribute

A required attribute is missing

invalid-reference

A reference does not point to a suitable element

failed-update

An animation could not be updated

failed-rendering

Rendering is not according to expecations

ignored-element

An XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements)

limits-exceeded

An implementation limit has been hit, such as the number of loaded shapes.

not-implemented

The SVG uses features that are not supported by <GtkSvg>. It may be advisable to use a different SVG renderer.

Procedures

Procedure: svg-error:get-attribute error ⇒ %return

Returns context information about what XML attribute the parsing error occurred in.

error

Passed: a <GError>.

an error in the <GtkSvgError> domain

%return

Returned: a string, or #f.

the attribute name

Procedure: svg-error:get-element error ⇒ %return

Returns context information about what XML element the parsing error occurred in.

error

Passed: a <GError>.

an error in the <GtkSvgError> domain

%return

Returned: a string, or #f.

the element name

Procedure: svg-error:quark ⇒ %return
%return

Returned: an unsigned 32-bit integer.