Widget.connectCanActivateAccel
gulong connectCanActivateAccel(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.widget.Widget)))
&& Parameters!T.length < 3)Connect to CanActivateAccel signal.
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This signal is present to allow applications and derived widgets to override the default #GtkWidget handling for determining whether an accelerator can be activated.
Parameters
callback | signal callback delegate or function to connect bool callback(uint signalId, gtk.widget.Widget widget) signalId the ID of a signal installed on widget (optional) widget the instance the signal is connected to (optional) Returns true if the signal can be activated. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID