From a7ff7c49085c320c1e0a2ffb66cc6d283c5acb8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 21 Jan 2017 19:17:10 +0100 Subject: New upstream version 0.25.3 --- src/library/ImportQueuePage.vala | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/library/ImportQueuePage.vala') 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)); -- cgit v1.2.3