diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-12-22 18:27:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-12-22 18:27:33 +0000 |
commit | 76d85fb411127ead58155085b9b7d4c08d895113 (patch) | |
tree | cad49410d9268ea8e1da297ff745d198bb3bc310 /gtk2_ardour/patch_change_dialog.cc | |
parent | 1d7e9daea431466cb4efb1ec2789009109daba02 (diff) |
add Delete button to patch change dialog when editing it
git-svn-id: svn://localhost/ardour2/branches/3.0@13710 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/patch_change_dialog.cc')
-rw-r--r-- | gtk2_ardour/patch_change_dialog.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/patch_change_dialog.cc b/gtk2_ardour/patch_change_dialog.cc index a7fc024a8f..97fcb39ae6 100644 --- a/gtk2_ardour/patch_change_dialog.cc +++ b/gtk2_ardour/patch_change_dialog.cc @@ -44,7 +44,8 @@ PatchChangeDialog::PatchChangeDialog ( ARDOUR::Session* session, Evoral::PatchChange<Evoral::MusicalTime> const & patch, ARDOUR::InstrumentInfo& info, - const Gtk::BuiltinStockID& ok + const Gtk::BuiltinStockID& ok, + bool allow_delete ) : ArdourDialog (_("Patch Change"), true) , _time_converter (tc) @@ -114,6 +115,9 @@ PatchChangeDialog::PatchChangeDialog ( add_button (Stock::CANCEL, RESPONSE_CANCEL); add_button (ok, RESPONSE_ACCEPT); + if (allow_delete) { + add_button (Stock::DELETE, RESPONSE_REJECT); + } set_default_response (RESPONSE_ACCEPT); fill_bank_combo (); |