NativeDialog.connectResponse

gulong connectResponse(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.native_dialog.NativeDialog))) && Parameters!T.length < 3)

Connect to Response signal.

Emitted when the user responds to the dialog.

When this is called the dialog has been hidden.

If you call [gtk.native_dialog.NativeDialog.hide] before the user responds to the dialog this signal will not be emitted.

Parameters

callbacksignal callback delegate or function to connect void callback(int responseId, gtk.native_dialog.NativeDialog nativeDialog) responseId the response ID (optional) nativeDialog the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID