update selection clock
[ardour.git] / gtk2_ardour / automation_time_axis.cc
index 3452da3847be950ad9f9f4aaf81e706f05733587..60552ce14eaafb4d3dbb5742ff4faf7d1a81b84d 100644 (file)
@@ -434,7 +434,7 @@ AutomationTimeAxisView::clear_clicked ()
 {
        assert (_line || _view);
 
-       _session->begin_reversible_command (_("clear automation"));
+       _editor.begin_reversible_command (_("clear automation"));
 
        if (_line) {
                _line->clear ();
@@ -442,7 +442,7 @@ AutomationTimeAxisView::clear_clicked ()
                _view->clear ();
        }
 
-       _session->commit_reversible_command ();
+       _editor.commit_reversible_command ();
        _session->set_dirty ();
 }
 
@@ -627,13 +627,14 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, framepos_t when,
 
        _editor.snap_to_with_modifier (when, event);
 
-       _session->begin_reversible_command (_("add automation event"));
+       _editor.begin_reversible_command (_("add automation event"));
        XMLNode& before = list->get_state();
 
        list->add (when, y, with_guard_points);
 
        XMLNode& after = list->get_state();
-       _session->commit_reversible_command (new MementoCommand<ARDOUR::AutomationList> (*list, &before, &after));
+       _session->add_command (new MementoCommand<ARDOUR::AutomationList> (*list, &before, &after));
+       _editor.commit_reversible_command ();
        _session->set_dirty ();
 }
 
@@ -692,7 +693,7 @@ AutomationTimeAxisView::paste_one (framepos_t pos, unsigned paste_count, float t
 }
 
 void
-AutomationTimeAxisView::get_selectables (framepos_t start, framepos_t end, double top, double bot, list<Selectable*>& results)
+AutomationTimeAxisView::get_selectables (framepos_t start, framepos_t end, double top, double bot, list<Selectable*>& results, bool /*within*/)
 {
        if (!_line && !_view) {
                return;