setResponseEnabled

open fun setResponseEnabled(response: String, enabled: Boolean)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 1.6.

Use class@AlertDialog.

---

Sets whether @response is enabled.

If @response is not enabled, the corresponding button will have property@Gtk.Widget:sensitive set to FALSE and it can't be activated as a default response.

Since

1.2

Parameters

response

a response ID

enabled

whether to enable @response