diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-07-09 12:10:38 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-07-09 12:10:38 +0200 |
commit | 709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch) | |
tree | 496b2f3899e1d5728ee9ae76095cc5056c317447 /src/MediaPage.vala | |
parent | f1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff) | |
parent | 5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff) |
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/MediaPage.vala')
-rw-r--r-- | src/MediaPage.vala | 54 |
1 files changed, 8 insertions, 46 deletions
diff --git a/src/MediaPage.vala b/src/MediaPage.vala index a2d5185..eeb79e6 100644 --- a/src/MediaPage.vala +++ b/src/MediaPage.vala @@ -291,7 +291,6 @@ public abstract class MediaPage : CheckerboardPage { { "MoveToTrash", on_move_to_trash }, { "NewEvent", on_new_event }, { "AddTags", on_add_tags }, - { "AddTagsContextMenu", on_add_tags }, { "ModifyTags", on_modify_tags }, { "IncreaseSize", on_increase_size }, { "DecreaseSize", on_decrease_size }, @@ -362,7 +361,7 @@ public abstract class MediaPage : CheckerboardPage { if (DesktopIntegration.is_send_to_installed()) set_action_sensitive("SendTo", selected_count > 0); else - set_action_visible("SendTo", false); + set_action_sensitive("SendTo", false); set_action_sensitive("Rate", selected_count > 0); update_rating_sensitivities(); @@ -556,46 +555,6 @@ public abstract class MediaPage : CheckerboardPage { activate_action("RateRejected"); break; - case "exclam": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.ONE_OR_HIGHER); - break; - - case "at": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.TWO_OR_HIGHER); - break; - - case "numbersign": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.THREE_OR_HIGHER); - break; - - case "dollar": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.FOUR_OR_HIGHER); - break; - - case "percent": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.FIVE_OR_HIGHER); - break; - - case "parenright": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.UNRATED_OR_HIGHER); - break; - - case "parenleft": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.REJECTED_OR_HIGHER); - break; - - case "asterisk": - if (get_ctrl_pressed()) - get_search_view_filter().set_rating_filter(RatingFilter.REJECTED_ONLY); - break; - case "slash": activate_action("Flag"); break; @@ -816,14 +775,17 @@ public abstract class MediaPage : CheckerboardPage { restore_point = get_view().get_next(cursor) as CheckerboardItem; } - if (get_view().get_selected_count() > 0) { - get_command_manager().execute(new TrashUntrashPhotosCommand( - (Gee.Collection<MediaSource>) get_view().get_selected_sources(), true)); - } + var sources = get_view().get_selected_sources(); if ((restore_point != null) && (get_view().contains(restore_point))) { set_cursor(restore_point); } + + if (get_view().get_selected_count() > 0) { + get_command_manager().execute(new TrashUntrashPhotosCommand( + (Gee.Collection<MediaSource>) sources, true)); + } + } protected virtual void on_edit_title() { |