summaryrefslogtreecommitdiff
path: root/src/library/TrashPage.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-21 19:17:10 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-01-21 19:17:10 +0100
commita7ff7c49085c320c1e0a2ffb66cc6d283c5acb8e (patch)
treed9f86def771c7845f241ec81219b243c70523c60 /src/library/TrashPage.vala
parent66f6a7bd3f7e00022191f16cb0e82a39e7333a76 (diff)
New upstream version 0.25.3upstream/0.25.3
Diffstat (limited to 'src/library/TrashPage.vala')
-rw-r--r--src/library/TrashPage.vala13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/library/TrashPage.vala b/src/library/TrashPage.vala
index 943c5e1..c06fbbf 100644
--- a/src/library/TrashPage.vala
+++ b/src/library/TrashPage.vala
@@ -52,10 +52,17 @@ public class TrashPage : CheckerboardPage {
{ "Restore", on_restore }
};
- protected override void add_actions () {
- base.add_actions ();
+ protected override void add_actions(GLib.ActionMap map) {
+ base.add_actions(map);
- AppWindow.get_instance ().add_action_entries (entries, this);
+ map.add_action_entries (entries, this);
+ }
+
+ protected override void remove_actions(GLib.ActionMap map) {
+ base.remove_actions(map);
+ foreach (var entry in entries) {
+ map.remove_action(entry.name);
+ }
}
public override Core.ViewTracker? get_view_tracker() {