From d936bdb3a8e55d26a238376d4b99f56ebeb582b1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 13 Aug 2010 02:00:46 +0000 Subject: [PATCH] only the last step-edited note remains selected after each note addition; waf install will install step_editing.bindings in the right place (i think) git-svn-id: svn://localhost/ardour2/branches/3.0@7612 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_region_view.cc | 3 +++ gtk2_ardour/wscript | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 52b2150de4..3482c62a51 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1491,6 +1491,9 @@ MidiRegionView::step_add_note (uint8_t channel, uint8_t number, uint8_t velocity _region->set_length (end_frame - _region->position(), this); } + _marked_for_selection.clear (); + clear_selection (); + start_diff_command (_("step add")); diff_add_note (new_note, true, false); apply_diff(); diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript index 9a4b90bfbb..307ebe371e 100644 --- a/gtk2_ardour/wscript +++ b/gtk2_ardour/wscript @@ -448,6 +448,9 @@ def build(bld): ) obj.install_path = os.path.join(bld.env['CONFIGDIR'], 'ardour3') + # not modified at present + bld.install_files(os.path.join(bld.env['CONFIGDIR'], 'ardour3'), 'step_editing.bindings') + # Icons/Images bld.install_files('${DATADIR}/ardour3/icons', 'icons/*.png') bld.install_files('${DATADIR}/ardour3/pixmaps', 'pixmaps/*.xpm')