struct Gio::Settings::ChangedSignal

Overview

The "changed" signal is emitted when a key has potentially changed. You should call one of the g_settings_get() calls to check the new value.

This signal supports detailed connections. You can connect to the detailed signal "changed::x" in order to only receive callbacks when key "x" changes.

Note that settings only emits this signal if you have read key at least once while a signal handler was already connected for key.

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 : Nil | String = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(String, Nil)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(String, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gio::Settings, String, Nil), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(key : String) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]