summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-02-07 16:50:06 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-02-07 16:51:32 +0100
commit4aaf3fcb95e280a4348bced300553d4166f72a71 (patch)
tree181065310f6d148335f9f2dca3a753d0c017ecbb
parente42c0ff1ea0607e3ab153522255707082cae6cb3 (diff)
3 actions (trim-front, trim-back, set-sync-position) do not need to be region-selection sensitive.
They get regions via ::get_regions_from_selection_and_edit_point(). Many other editor operations need to be manually evaluated for this change, also.
-rw-r--r--gtk2_ardour/editor_actions.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index 25fc1afcd9..628ab1c9a1 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -1956,10 +1956,13 @@ Editor::register_region_actions ()
/* PART 3: actions that operate on the selection and also require the edit point location */
- reg_sens (_region_actions, "set-region-sync-position", _("Set Sync Position"), sigc::mem_fun (*this, &Editor::set_region_sync_position));
reg_sens (_region_actions, "place-transient", _("Place Transient"), sigc::mem_fun (*this, &Editor::place_transient));
- reg_sens (_region_actions, "trim-front", _("Trim Start at Edit Point"), sigc::mem_fun (*this, &Editor::trim_region_front));
- reg_sens (_region_actions, "trim-back", _("Trim End at Edit Point"), sigc::mem_fun (*this, &Editor::trim_region_back));
+
+ /* These 3 do not need to be senstive to region selection */
+
+ myactions.register_action (_region_actions, "set-region-sync-position", _("Set Sync Position"), sigc::mem_fun (*this, &Editor::set_region_sync_position));
+ myactions.register_action (_region_actions, "trim-front", _("Trim Start at Edit Point"), sigc::mem_fun (*this, &Editor::trim_region_front));
+ myactions.register_action (_region_actions, "trim-back", _("Trim End at Edit Point"), sigc::mem_fun (*this, &Editor::trim_region_back));
reg_sens (
_region_actions,