diff options
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 | ||||
-rw-r--r-- | libs/ardour/ardour/operations.h | 2 | ||||
-rw-r--r-- | libs/ardour/operations.cc | 2 | ||||
-rw-r--r-- | libs/ardour/session.cc | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index e1c7332133..278a38f304 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -869,9 +869,9 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const /*changed } if (_x_constrained) { - _editor->begin_reversible_command (_("fixed time region copy")); + _editor->begin_reversible_command (Operations::fixed_time_region_copy); } else { - _editor->begin_reversible_command (_("region copy")); + _editor->begin_reversible_command (Operations::region_copy); } /* insert the regions into their new playlists */ diff --git a/libs/ardour/ardour/operations.h b/libs/ardour/ardour/operations.h index 945a5816a7..95639171f9 100644 --- a/libs/ardour/ardour/operations.h +++ b/libs/ardour/ardour/operations.h @@ -38,6 +38,8 @@ namespace Operations { extern GQuark region_fill; extern GQuark fill_selection; extern GQuark create_region; + extern GQuark region_copy; + extern GQuark fixed_time_region_copy; }; diff --git a/libs/ardour/operations.cc b/libs/ardour/operations.cc index eddd36036c..84da0f566a 100644 --- a/libs/ardour/operations.cc +++ b/libs/ardour/operations.cc @@ -32,3 +32,5 @@ GQuark Operations::selection_grab = g_quark_from_static_string (_("selection GQuark Operations::region_fill = g_quark_from_static_string (_("region fill")); GQuark Operations::fill_selection = g_quark_from_static_string (_("fill selection")); GQuark Operations::create_region = g_quark_from_static_string (_("create region")); +GQuark Operations::region_copy = g_quark_from_static_string (_("region copy")); +GQuark Operations::fixed_time_region_copy = g_quark_from_static_string (_("fixed time region copy")); diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 6d3a73343a..c0ae7e876c 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -2534,6 +2534,8 @@ Session::playlist_region_added (boost::weak_ptr<Region> w) ops.push_back (Operations::region_fill); ops.push_back (Operations::fill_selection); ops.push_back (Operations::create_region); + ops.push_back (Operations::region_copy); + ops.push_back (Operations::fixed_time_region_copy); ops.sort (); /* See if any of the current operations match the ones that we want */ |