Adw.Dialog:can-close
Description: Reference for property Adw.Dialog:can-close

### Property

# Adw Dialog:can-close

#### Declaration

    property can-close: gboolean [ read, write ]

#### Description [src]

Whether the dialog can be closed.

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

Type: | `gboolean`
Available since: | 1.5

Setter method | `adw_dialog_set_can_close()`
Getter method | `adw_dialog_get_can_close()`

#### Flags

Readable | yes
Writable | yes
Construct | no
Construct only | no