Skip to main content

Module context_menu

Module context_menu 

Source
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§

AssetMenuHooks 🔒
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.
MenuAsset 🔒
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_edited so a lightbox can refresh its heart, and through on_trashed when 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 🔒