Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions src/ScreenshotManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,24 @@ public class Gala.ScreenshotManager : Object {
var files_appinfo = AppInfo.get_default_for_type ("inode/directory", true);
var photos_appinfo = AppInfo.get_default_for_type ("image/png", true);

var open_in_photos_action = GLib.Action.print_detailed_name (
"open-in-photos",
new Variant ("s", filename_used)
);

/// TRANSLATORS: %s represents a name of image viewer
var open_in_photos_label = _("Open in %s").printf (photos_appinfo.get_display_name ());

actions = {
GLib.Action.print_detailed_name (
"show-in-files",
new Variant ("s", filename_used)),
/// TRANSLATORS: %s represents a name of file manager
_("Show in %s").printf (files_appinfo.get_display_name ()
),
GLib.Action.print_detailed_name (
"open-in-photos",
new Variant ("s", filename_used)),
/// TRANSLATORS: %s represents a name of image viewer
_("Open in %s").printf (photos_appinfo.get_display_name ()
)
// TODO: uncomment when https://github.com/elementary/notifications/issues/237 is fixed
// open_in_photo_action
// open_in_photos_label
};
}

Expand Down
Loading