add_response


Description:

public void add_response (string id, string label)

Adds a response with id and label to this.

Responses are represented as buttons in the dialog.

Response ID must be unique. It will be used in [signal@MessageDialog:AdwMessageDialog:response] to tell which response had been activated, as well as to inspect and modify the response later.

An embedded underline in label indicates a mnemonic.

[[email protected]_response_label] can be used to change the response label after it had been added.

[[email protected]_response_enabled] and [[email protected]_response_appearance] can be used to customize the responses further.

Parameters:

this

a message dialog

id

the response ID

label

the response label




2022 vala-language.org