struct Gio::Settings::ChangeEventSignal

Overview

The "change-event" signal is emitted once per change event that affects this settings object. You should connect to this signal only if you are interested in viewing groups of changes before they are split out into multiple emissions of the "changed" signal. For most use cases it is more appropriate to use the "changed" signal.

In the event that the change event applies to one or more specified keys, @keys will be an array of #GQuark of length @n_keys. In the event that the change event applies to the #GSettings object as a whole (ie: potentially every key has been changed) then @keys will be nil and @n_keys will be 0.

The default handler for this signal invokes the "changed" signal for each affected key. If any other connected handler returns true then this default functionality will be suppressed.

Defined in:

lib/gi-crystal/src/auto/gio-2.0/settings.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(Enumerable(UInt32)?, Bool)) : GObject::SignalConnection #

def connect(handler : Proc(Enumerable(UInt32)?, Bool), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Gio::Settings, Enumerable(UInt32)?, Bool), *, after : Bool = false) : GObject::SignalConnection #

def emit(keys : Enumerable(UInt32)?) : Nil #

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

The signal name