X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fnew_plugin_preset_dialog.cc;h=70926f5a378ff051f2a3b944e9ac0d6cfd4652fd;hb=ae3c50c495ffadbc62103cc1d3a61af2b48f423e;hp=2016e8046d86dc6e6b8c7fc2ce70649b48601e1d;hpb=ed626628b54e67dd9621c08d82a42afaed00c7ac;p=ardour.git diff --git a/gtk2_ardour/new_plugin_preset_dialog.cc b/gtk2_ardour/new_plugin_preset_dialog.cc index 2016e8046d..70926f5a37 100644 --- a/gtk2_ardour/new_plugin_preset_dialog.cc +++ b/gtk2_ardour/new_plugin_preset_dialog.cc @@ -20,13 +20,13 @@ #include #include "new_plugin_preset_dialog.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace Gtk; -NewPluginPresetDialog::NewPluginPresetDialog (boost::shared_ptr p) - : ArdourDialog (_("New Preset")) +NewPluginPresetDialog::NewPluginPresetDialog (boost::shared_ptr p, std::string title, bool favorite_btn) + : ArdourDialog (title) , _replace (_("Replace existing preset with this name")) { HBox* h = manage (new HBox); @@ -40,7 +40,13 @@ NewPluginPresetDialog::NewPluginPresetDialog (boost::shared_ptr get_vbox()->pack_start (_replace); add_button (Stock::CANCEL, RESPONSE_CANCEL); + if (favorite_btn) { + add_button (_("New Favorite Only"), RESPONSE_NO); + } _add = add_button (Stock::ADD, RESPONSE_ACCEPT); + set_default_response (RESPONSE_ACCEPT); + _name.set_activates_default(true); + show_all ();