set_visible_child


Description:

public void set_visible_child (Widget visible_child)

Sets the widget currently visible when the leaflet is folded.

Note:

See [the migration guide](migrating-to-breakpoints.html#replace-adwleaflet)

The transition is determined by [property@Leaflet:transition-type] and [property@Leaflet:child-transition-params]. The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.

Parameters:

this

a leaflet

visible_child

the new child