struct Gtk::CssProvider::ParsingErrorSignal

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.cr

Instance Method Summary

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 : 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 #

def emit(section : Gtk::CssSection, error : GLib::Error) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name