From 04c0f24753a16fb5d89220980051dd8638e65e3e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 18 Nov 2015 18:11:33 +0100 Subject: [PATCH] use new plugin class API for filter --- gtk2_ardour/plugin_selector.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc index 7da709ecf1..a38ad7d2e0 100644 --- a/gtk2_ardour/plugin_selector.cc +++ b/gtk2_ardour/plugin_selector.cc @@ -272,10 +272,10 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string& if (_show_instruments == Gtkmm2ext::Off && info->is_instrument()) { return false; } - if (_show_analysers == Gtkmm2ext::Off && info->category == "Analyser") { + if (_show_analysers == Gtkmm2ext::Off && info->in_category ("Analyser")) { return false; } - if (_show_utils == Gtkmm2ext::Off && info->category == "Utility") { + if (_show_utils == Gtkmm2ext::Off && info->in_category ("Utility")) { return false; } @@ -287,10 +287,10 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string& if (_show_instruments == Gtkmm2ext::ExplicitActive && info->is_instrument()) { exp_ok = true; } - if (_show_analysers == Gtkmm2ext::ExplicitActive && info->category == "Analyser") { + if (_show_analysers == Gtkmm2ext::ExplicitActive && info->in_category ("Analyser")) { exp_ok = true; } - if (_show_utils == Gtkmm2ext::ExplicitActive && info->category == "Utility") { + if (_show_utils == Gtkmm2ext::ExplicitActive && info->in_category ("Utility")) { exp_ok = true; } if (_show_instruments == Gtkmm2ext::ExplicitActive || _show_analysers == Gtkmm2ext::ExplicitActive || _show_utils == Gtkmm2ext::ExplicitActive) {