NavigationPage.canPop

Set canPop property.

  1. bool canPop [@property getter]
  2. bool canPop [@property setter]
    class NavigationPage
    @property
    void
    canPop
    (
    bool propval
    )

Parameters

propval bool

Whether the page can be popped from navigation stack.

Set it to FALSE to disable shortcuts and gestures, as well as remove the back button from class@HeaderBar.

Manually calling adw.navigation_view.NavigationView.pop or using the navigation.pop action will still work.

See property@HeaderBar:show-back-button for removing only the back button, but not shortcuts.