Skip to main content

Module albums_view

Module albums_view 

Source
Expand description

Albums landing page with Recent / Owned / Shared sections.

Fetches album cover thumbnails and renders them as clickable tiles in a responsive flow layout. Selecting a tile navigates the main grid to that album’s contents.

Structs§

AlbumsViewParts
Contains references to individual grid widgets of the albums overview display.

Enums§

AlbumAction
Right-click actions on the user’s own album tiles.
AlbumsSort
Sort modes available for the albums landing page.

Functions§

album_tile 🔒
Build a clickable tile representing an individual album complete with cover art.
attach_share_menu 🔒
Right-click a tile for “Share…” and “Create Share Link…”.
build_albums_view
Construct the hierarchical panels and containers for the albums listing page.
build_empty_state 🔒
build_header 🔒
Page title with the filter entry and “Create album” button below it.
build_section 🔒
Build a single category grid section with a text label and a flow box layout.
clear 🔒
Remove all child widgets from the specified flow box.
insert_tiles 🔒
Add a tile per album; share (own albums only) enables the right-click “Share…”.
populate_albums
Populate the album list grids grouped by ownership status.
project_albums 🔒
Pure projection over the cached album list. Returns the (recent, owned, shared) buckets that drive the three Albums-view rows after applying the active search filter and sort mode. Extracted from render_albums so the ordering rules can be unit-tested without GTK.
render_albums 🔒
set_search_filter
Set the current search filter and re-render. Empty string clears the filter.
set_share_handler
Handler for “Share…” on the user’s own album tiles.
set_shared_only
Switch between the full Albums page and the Shared Albums page, then re-render.
set_sort_mode
Set the current sort mode and re-render.
shared_by_you 🔒
The user’s albums that have at least one other member.
show_empty_state 🔒
Explain an empty Shared Albums page; without the user id albums can’t be sorted by owner.
spawn_thumbnail 🔒
Asynchronously load and set the thumbnail for an album cover art picture widget.

Type Aliases§

AlbumClick
AlbumShare
Runs a right-click action for one of the user’s own albums.