diff options
author | nick_m <mainsbridge@gmail.com> | 2016-05-10 05:25:53 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:16 +1000 |
commit | 8724a9f68f2854be6c3c70f15efda8076ef5db1d (patch) | |
tree | 01f4aa04f869d330676b401dc86da1324f982055 /gtk2_ardour/tempo_curve.cc | |
parent | ccf6ce76d9d651a27c08bbd9d1cd2259acf5e026 (diff) |
Tempo ramps - improve constraint mod + bbt dragging begavior.
Diffstat (limited to 'gtk2_ardour/tempo_curve.cc')
-rw-r--r-- | gtk2_ardour/tempo_curve.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/tempo_curve.cc b/gtk2_ardour/tempo_curve.cc index 8604f7abba..37feb9870d 100644 --- a/gtk2_ardour/tempo_curve.cc +++ b/gtk2_ardour/tempo_curve.cc @@ -78,14 +78,16 @@ TempoCurve::TempoCurve (PublicEditor& ed, ArdourCanvas::Container& parent, guint * make sure they can both be used to lookup this object. */ - group->set_data ("marker", this); + _curve->set_data ("tempo curve", this); + _background->set_data ("tempo curve", this); if (handle_events) { //group->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_marker_event), group, this)); } + set_position (_tempo.frame(), UINT32_MAX); - _curve->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_tempo_curve_event), group, this)); - _background->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_tempo_curve_event), group, this)); + _curve->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_tempo_curve_event), _curve, this)); + _background->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_tempo_curve_event), _background, this)); } |