Adw.LeafletPage

g Adw.LeafletPage Adw.LeafletPage GObject.Object GObject.Object GObject.Object->Adw.LeafletPage

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_child ()

get_name ()

get_navigatable ()

set_name (name)

set_navigatable (navigatable)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

child

Gtk.Widget

d/r/w/co

deprecated

name

str

d/r/w/en

deprecated

navigatable

bool

d/r/w/en

deprecated

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Adw.LeafletPage(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Adw.LeafletPageClass

An auxiliary class used by [class`Leaflet`].

Deprecated since version 1.4: See the migration guide

get_child()
Returns:

the child to which self belongs

Return type:

Gtk.Widget

Gets the leaflet child to which self belongs.

Deprecated since version 1.4: See the migration guide

get_name()
Returns:

the name of self.

Return type:

str or None

Gets the name of self.

Deprecated since version 1.4: See the migration guide

get_navigatable()
Returns:

whether self can be navigated to when folded

Return type:

bool

Gets whether the child can be navigated to when folded.

Deprecated since version 1.4: See the migration guide

set_name(name)
Parameters:

name (str or None) – the new value to set

Sets the name of the self.

Deprecated since version 1.4: See the migration guide

set_navigatable(navigatable)
Parameters:

navigatable (bool) – whether self can be navigated to when folded

Sets whether self can be navigated to when folded.

If FALSE, the child will be ignored by [method`Leaflet`.get_adjacent_child], [method`Leaflet`.navigate], and swipe gestures.

This can be used used to prevent switching to widgets like separators.

Deprecated since version 1.4: See the migration guide

Property Details

Adw.LeafletPage.props.child
Name:

child

Type:

Gtk.Widget

Default Value:

None

Flags:

DEPRECATED, READABLE, WRITABLE, CONSTRUCT_ONLY

The leaflet child to which the page belongs.

Deprecated since version 1.4: See the migration guide

Adw.LeafletPage.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

DEPRECATED, READABLE, WRITABLE, EXPLICIT_NOTIFY

The name of the child page.

Deprecated since version 1.4: See the migration guide

Adw.LeafletPage.props.navigatable
Name:

navigatable

Type:

bool

Default Value:

True

Flags:

DEPRECATED, READABLE, WRITABLE, EXPLICIT_NOTIFY

Whether the child can be navigated to when folded.

If FALSE, the child will be ignored by [method`Leaflet`.get_adjacent_child], [method`Leaflet`.navigate], and swipe gestures.

This can be used used to prevent switching to widgets like separators.

Deprecated since version 1.4: See the migration guide