set_can_pop


Description:

public void set_can_pop (bool can_pop)

Sets whether this 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 [method@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.

Parameters:

this

a navigation page

can_pop

whether the page can be popped from navigation stack