summaryrefslogtreecommitdiff
path: root/src/library/ImportQueuePage.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/ImportQueuePage.vala')
-rw-r--r--src/library/ImportQueuePage.vala15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/library/ImportQueuePage.vala b/src/library/ImportQueuePage.vala
index a2f2290..feb525d 100644
--- a/src/library/ImportQueuePage.vala
+++ b/src/library/ImportQueuePage.vala
@@ -63,12 +63,19 @@ public class ImportQueuePage : SinglePhotoPage {
{"Stop", on_stop }
};
- 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 void enqueue_and_schedule(BatchImport batch_import, bool allow_user_cancel) {
assert(!queue.contains(batch_import));