struct Gtk::CssProvider::ParsingErrorSignal
- Gtk::CssProvider::ParsingErrorSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Signals that a parsing error occurred.
The expected error values are in the Gtk::CssParserError
and Gtk::CssParserWarning
enumerations.
The path, line and position describe the actual location of the error as accurately as possible.
Parsing errors are never fatal, so the parsing will resume after the error. Errors may however cause parts of the given data or even all of it to not be parsed at all. So it is a useful idea to check that the parsing succeeds by connecting to this signal.
Errors in the Gtk::CssParserWarning
enumeration should not
be treated as fatal errors.
Note that this signal may be emitted at any time as the css provider may opt to defer parsing parts or all of the input to a later time than when a loading function was called.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/css_provider.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(Gtk::CssSection, GLib::Error, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::CssSection, GLib::Error, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gtk::CssProvider, Gtk::CssSection, GLib::Error, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(section : Gtk::CssSection, error : GLib::Error) : Nil
-
#name : String
The signal name