diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-17 01:42:44 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-17 01:42:44 +0000 |
commit | 762d2ae936bd78053d9f344ce9392b7867304ae2 (patch) | |
tree | 4d5b8655b28f02ba56183b133b87e18b0f9e5d50 /gtk2_ardour/editor.cc | |
parent | d3071f84e5be7d611b83ce68908da697566a9713 (diff) |
fix ordering of cut/copied regions when pasting; ctrl-click now does the right thing the first time its used on a region; fix missing click and other dubious behaviour in new sessions caused by not connecting to Configuration::ParameterChanged in the new session constructor
git-svn-id: svn://localhost/ardour2/trunk@1331 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index cd1e9f3f61..e447603100 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -28,6 +28,7 @@ #include <pbd/convert.h> #include <pbd/error.h> +#include <pbd/stacktrace.h> #include <pbd/memento_command.h> #include <gtkmm/image.h> @@ -3030,7 +3031,6 @@ Editor::mapped_set_selected_regionview_from_click (RouteTimeAxisView& tv, uint32 return; } - if ((pl = ds->playlist()) != 0) { pl->get_equivalent_regions (basis->region(), results); } @@ -3052,6 +3052,10 @@ Editor::set_selected_regionview_from_click (bool press, Selection::Operation op, return false; } + if (press) { + button_release_can_deselect = false; + } + if (op == Selection::Toggle || op == Selection::Set) { mapover_audio_tracks (bind (mem_fun (*this, &Editor::mapped_set_selected_regionview_from_click), @@ -4292,3 +4296,17 @@ Editor::idle_visual_changer () return 0; } + +struct EditorOrderTimeAxisSorter { + bool operator() (const TimeAxisView* a, const TimeAxisView* b) const { + return a->order < b->order; + } +}; + +void +Editor::sort_track_selection () +{ + EditorOrderTimeAxisSorter cmp; + selection->tracks.sort (cmp); +} + |