set_can_close


Description:

public void set_can_close (bool can_close)

Sets whether this can be closed.

If set to `FALSE`, the close button, shortcuts and [method@Dialog.close] will result in [signal@Dialog:AdwDialog:close-attempt ] being emitted instead, and bottom sheet close swipe will be disabled. [method@Dialog.force_close] still works.

Parameters:

this

a dialog

can_close

whether to allow closing