diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-19 17:38:56 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-19 17:38:56 +0000 |
commit | 1e8586742e48f56bb81fa14c50442cec23894dfd (patch) | |
tree | 717797af5e3e87e67a1356e14a5d74520cbbd904 /gtk2_ardour/editor_ops.cc | |
parent | 074d58fc6f97c225e804d32b5d2b8f09e4d512da (diff) |
Fix session range location by hooking into the undo system. Fixes #3654.
git-svn-id: svn://localhost/ardour2/branches/3.0@8539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 4b7c409d3c..6eb837e5e4 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -55,6 +55,7 @@ #include "ardour/quantize.h" #include "ardour/strip_silence.h" #include "ardour/route_group.h" +#include "ardour/operations.h" #include "ardour_ui.h" #include "editor.h" @@ -3032,7 +3033,7 @@ Editor::region_fill_track () framepos_t const end = _session->current_end_frame (); - begin_reversible_command (_("region fill")); + begin_reversible_command (Operations::region_fill); for (RegionSelection::iterator i = rs.begin(); i != rs.end(); ++i) { @@ -3086,7 +3087,7 @@ Editor::region_fill_selection () framepos_t selection_length = end - start; float times = (float)selection_length / region->length(); - begin_reversible_command (_("fill selection")); + begin_reversible_command (Operations::fill_selection); for (TrackSelection::iterator i = selection->tracks.begin(); i != selection->tracks.end(); ++i) { @@ -4155,7 +4156,7 @@ Editor::paste_internal (framepos_t position, float times) position = get_preferred_edit_position(); } - begin_reversible_command (_("paste")); + begin_reversible_command (Operations::paste); TrackViewList ts; TrackViewList::iterator i; @@ -4218,7 +4219,7 @@ Editor::duplicate_some_regions (RegionSelection& regions, float times) framepos_t const start_frame = regions.start (); framepos_t const end_frame = regions.end_frame (); - begin_reversible_command (_("duplicate region")); + begin_reversible_command (Operations::duplicate_region); selection->clear_regions (); |