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 signal is also emitted when the dialog receives a delete event, and when [gtk.dialog.Dialog.response] is called. On a delete event, the response ID is [gtk.types.ResponseType.DeleteEvent]. 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

Deprecated

Use [gtk.window.Window] instead