MessageDialog.setResponseEnabled

Sets whether response is enabled.

If response is not enabled, the corresponding button will have gtk.widget.Widget.gboolean set to FALSE and it can't be activated as a default response.

response can still be used as propertyMessageDialog:close-response while it's not enabled.

Responses are enabled by default.

class MessageDialog
void
setResponseEnabled
(
string response
,
bool enabled
)

Parameters

response string

a response ID

enabled bool

whether to enable response