summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_selector.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-11-18 18:11:33 +0100
committerRobin Gareus <robin@gareus.org>2015-11-18 18:11:33 +0100
commit04c0f24753a16fb5d89220980051dd8638e65e3e (patch)
tree16533a28e7ddb4288397650c08882f3787a089e4 /gtk2_ardour/plugin_selector.cc
parent9d867cfd87648e6b441638bda28153f5a9f02092 (diff)
use new plugin class API for filter
Diffstat (limited to 'gtk2_ardour/plugin_selector.cc')
-rw-r--r--gtk2_ardour/plugin_selector.cc8
1 files 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) {