summaryrefslogtreecommitdiff
path: root/src/library/OfflinePage.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/OfflinePage.vala')
-rw-r--r--src/library/OfflinePage.vala13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/library/OfflinePage.vala b/src/library/OfflinePage.vala
index bd916d0..1982618 100644
--- a/src/library/OfflinePage.vala
+++ b/src/library/OfflinePage.vala
@@ -56,10 +56,17 @@ public class OfflinePage : CheckerboardPage {
{ "RemoveFromLibrary", on_remove_from_library }
};
- 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() {