Adw.Flap.set_locked

### Method

# Adw Flapset_locked

#### Declaration [src]

    void
    adw_flap_set_locked (
      AdwFlap* self,
      gboolean locked
    )

#### Description [src]

Sets whether `self` is locked.

If `FALSE`, folding when the flap is revealed automatically closes it, and unfolding it when the flap is not revealed opens it. If `TRUE`, `AdwFlap:reveal-flap` value never changes on its own.

Available since: | 1.0

Sets property | `Adw.Flap:locked`

#### Parameters

`locked` | `gboolean`
| The new value.