summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-12-19 20:11:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-12-19 20:11:42 +0000
commit58c34fe805ddbe0d93c25a0eec1fe52106945743 (patch)
tree2f297e26adfb73e9de3ada7e36b725368312d1ef /gtk2_ardour/route_time_axis.cc
parent4bbfb6bffd3ecdf41bb3c8b73a0ca2eb000d7feb (diff)
make shift-click (extend) selection operation on track headers etc. work
git-svn-id: svn://localhost/ardour2/trunk@1233 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index b3a95711f1..87f5e8e7cc 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1012,7 +1012,13 @@ RouteTimeAxisView::selection_click (GdkEventButton* ev)
break;
case Selection::Extend:
- /* not defined yet */
+ if (tracks->size() > 1) {
+ /* add each one, do not "extend" */
+ editor.get_selection().add (*tracks);
+ } else {
+ /* extend to the single track */
+ editor.extend_selection_to_track (*tracks->front());
+ }
break;
case Selection::Add: