diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 1aebc10214..d4003550b5 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -431,7 +431,9 @@ AUPluginUI::AUPluginUI (boost::shared_ptr insert) smaller_hbox->pack_start (add_button, false, false); smaller_hbox->pack_start (save_button, false, false); smaller_hbox->pack_start (delete_button, false, false); - + if (has_descriptive_presets ()) { + smaller_hbox->pack_start (preset_browser_button, false, false); + } #if 0 /* one day these might be useful with an AU plugin, but not yet */ smaller_hbox->pack_start (automation_mode_label, false, false); diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 1fbe2278a8..29294a2af7 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -115,6 +115,9 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr pi, bool scrol smaller_hbox->pack_start (add_button, false, false); smaller_hbox->pack_start (save_button, false, false); smaller_hbox->pack_start (delete_button, false, false); + if (pi->controls().size() > 0 && has_descriptive_presets ()) { + smaller_hbox->pack_start (preset_browser_button, false, false); + } if (pi->controls().size() > 0) { smaller_hbox->pack_start (reset_button, false, false, 4); } diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index ff2fc79b3b..7f37b8c8ca 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -305,6 +305,9 @@ LV2PluginUI::LV2PluginUI(boost::shared_ptr pi, if (pi->controls().size() > 0) { _ardour_buttons_box.pack_end (reset_button, false, false, 4); } + if (has_descriptive_presets ()) { + _ardour_buttons_box.pack_end (preset_browser_button, false, false); + } _ardour_buttons_box.pack_end (delete_button, false, false); _ardour_buttons_box.pack_end (save_button, false, false); _ardour_buttons_box.pack_end (add_button, false, false); diff --git a/gtk2_ardour/vst_plugin_ui.cc b/gtk2_ardour/vst_plugin_ui.cc index 4416a354cb..1055183be4 100644 --- a/gtk2_ardour/vst_plugin_ui.cc +++ b/gtk2_ardour/vst_plugin_ui.cc @@ -45,6 +45,9 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr insert, boost: if (insert->controls().size() > 0) { box->pack_end (reset_button, false, false, 4); } + if (has_descriptive_presets ()) { + box->pack_end (preset_browser_button, false, false); + } box->pack_end (delete_button, false, false); box->pack_end (save_button, false, false); box->pack_end (add_button, false, false);