Method

AdapDialogset_can_close

since: 1.5

Declaration [src]

void
adap_dialog_set_can_close (
  AdapDialog* self,
  gboolean can_close
)

Description [src]

Sets whether self can be closed.

If set to FALSE, the close button, shortcuts and adap_dialog_close() will result in AdapDialog::close-attempt being emitted instead, and bottom sheet close swipe will be disabled. adap_dialog_force_close() still works.

Available since: 1.5

Sets propertyAdap.Dialog:can-close

Parameters

can_close

Type: gboolean

Whether to allow closing.