summaryrefslogtreecommitdiff
path: root/src/tags/TagPage.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/tags/TagPage.vala')
-rw-r--r--src/tags/TagPage.vala13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tags/TagPage.vala b/src/tags/TagPage.vala
index 04696c5..431eaf4 100644
--- a/src/tags/TagPage.vala
+++ b/src/tags/TagPage.vala
@@ -47,10 +47,17 @@ public class TagPage : CollectionPage {
{ "NewChildTagSidebar", on_new_child_tag_sidebar }
};
- 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);
+ }
}
private void on_tags_altered(Gee.Map<DataObject, Alteration> map) {