Dialog.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.dialog.Dialog))) && Parameters!T.length < 3)

Connect to Response signal.

Emitted when an action widget is clicked, the dialog receives a delete event, or the application programmer calls [gtk.dialog.Dialog.response]. On a delete event, the response ID is #GTK_RESPONSE_DELETE_EVENT. Otherwise, it depends on which action widget was clicked.

Parameters

callbacksignal callback delegate or function to connect void callback(int responseId, gtk.dialog.Dialog dialog) responseId the response ID (optional) dialog 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