struct Gio::SimpleAction::ActivateSignal
- Gio::SimpleAction::ActivateSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
Indicates that the action was just activated. parameter will always be of the expected type, i.e. the parameter type specified when the action was created. If an incorrect type is given when activating the action, this signal is not emitted.
Since GLib 2.40, if no handler is connected to this signal then the
default behaviour for boolean-stated actions with a nil
parameter
type is to toggle them via the #GSimpleAction::change-state signal.
For stateful actions where the state type is equal to the parameter
type, the default is to forward them directly to
#GSimpleAction::change-state. This should allow almost all users
of #GSimpleAction to connect only one handler or the other.
Defined in:
lib/gi-crystal/src/auto/gio-2.0/simple_action.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(GLib::Variant | Nil, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(GLib::Variant | Nil, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gio::SimpleAction, GLib::Variant | Nil, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(parameter : _ | Nil) : 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(GLib::Variant | Nil, Nil)) : GObject::SignalConnection
#
def connect(handler : Proc(GLib::Variant | Nil, Nil), *, after : Bool = false) : GObject::SignalConnection
#
def connect(handler : Proc(Gio::SimpleAction, GLib::Variant | Nil, Nil), *, after : Bool = false) : GObject::SignalConnection
#