Dialog.connectResponse

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.

More...
class Dialog
ulong
connectResponse
(
T
)
(,
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
)

Parameters

callback T

signal 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)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID

Detailed Description

Deprecated: Use gtk.window.Window instead