struct Gio::Settings::WritableChangeEventSignal

Overview

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

In the event that the writability change applies only to a single key, @key will be set to the #GQuark for that key. In the event that the writability change affects the entire settings object, @key will be 0.

The default handler for this signal invokes the "writable-changed" and "changed" signals for each affected key. This is done because changes in writability might also imply changes in value (if for example, a new mandatory setting is introduced). 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(UInt32, Bool)) : GObject::SignalConnection #

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

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

def emit(key : UInt32) : Nil #

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

The signal name