set_can_navigate_back


Description:

[ Version ( deprecated = true , deprecated_since = "1.4" ) ]
public void set_can_navigate_back (bool can_navigate_back)

Warning: set_can_navigate_back is deprecated since 1.4.

Sets whether gestures and shortcuts for closing subpages are enabled.

Note:

Use [method@NavigationPage.set_can_pop] instead.

Has no effect for subpages added with [method@PreferencesWindow.push_subpage].

The supported gestures are:

  • One-finger swipe on touchscreens
  • Horizontal scrolling on touchpads (usually two-finger swipe)
  • Back mouse button

The keyboard back key is also supported, as well as the <kbd>Alt</kbd>+<kbd>←</kbd> shortcut.

For right-to-left locales, gestures and shortcuts are reversed.

Parameters:

this

a preferences window

can_navigate_back

the new value