struct Gtk::CssProvider::ParsingErrorSignal
- Gtk::CssProvider::ParsingErrorSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Signals that a parsing error occurred.
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.
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
Instance methods inherited from struct GObject::Signal
[](detail : String) : self
[],
name : String
name
Constructor methods inherited from struct GObject::Signal
new(source : GObject::Object, detail : Nil | String = nil)
new
Instance Method Detail
def connect(*, after : Bool = false, &block : Proc(Gtk::CssSection, GLib::Error, Nil)) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::CssSection, GLib::Error, Nil), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gtk::CssProvider, Gtk::CssSection, GLib::Error, Nil), *, after : Bool = false) : GObject::SignalConnection
#