Expand description
Right-click context menu popover and its action handlers.
Builds a GTK popover menu with per-asset actions: copy, download, open in an external app, edit info, and move to trash. Actions delegate to the shared library helpers.
Structs§
- Asset
Menu 🔒Hooks - What the view that opened the menu does after its asset is trashed or edited.
- Menu 🔒
- Popover content plus a helper for full-width buttons that close the menu first.
- Menu
Asset 🔒 - The menu’s asset, captured once so each button can clone what it needs.
Functions§
- append_
archive_ 🔒button - append_
favorite_ 🔒button - “Add to / Remove from Favorites”. The opening view is told through
on_editedso a lightbox can refresh its heart, and throughon_trashedwhen the Favorites view drops it. - append_
manage_ 🔒buttons - “Edit Info…” and “Move to Trash” for assets that exist on the server; “Restore” and “Delete Permanently” instead while the Trash view is open.
- append_
trash_ 🔒button - append_
trash_ 🔒mode_ buttons - Trash view: put the asset back, or delete it for good after confirmation.
- copy_
asset_ 🔒to_ clipboard - ensure_
original_ 🔒asset_ path - open_
asset_ 🔒in_ default_ app - original_
path 🔒 - show_
alert_ 🔒dialog - show_
asset_ 🔒context_ menu