summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2012-10-16 09:19:19 +0000
committerHans Baier <hansfbaier@googlemail.com>2012-10-16 09:19:19 +0000
commit4c9fcd407c0333892a38c97a9598b1a9dd3ca2a4 (patch)
treea2e8ec1514e162b90b1eeac446aa12cae13f5e47 /gtk2_ardour/midi_time_axis.cc
parentcb84e71caa6faa3694a9c1958d24a67d02839326 (diff)
implement double click to ContentsRange on MidiScroomer
git-svn-id: svn://localhost/ardour2/branches/3.0@13284 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index af1e7b61c7..87d453c1d7 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -128,6 +128,9 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt)
if (is_track ()) {
_piano_roll_header = new PianoRollHeader(*midi_view());
_range_scroomer = new MidiScroomer(midi_view()->note_range_adjustment);
+ _range_scroomer->DoubleClicked.connect (sigc::bind (
+ sigc::mem_fun(*this, &MidiTimeAxisView::set_note_range),
+ MidiStreamView::ContentsRange, false));
}
/* This next call will result in our height being set up, so it must come after