clean up HitCreateDrag. should be a no-op.
[ardour.git] / gtk2_ardour / plugin_selector.cc
index 08046143f5539414acd060080d3d1f6e5a2ebc20..dd3a3a908d48a6eeca8ec832ff06a676719ecbd2 100644 (file)
@@ -42,7 +42,7 @@
 #include "gui_thread.h"
 #include "tooltips.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -341,6 +341,9 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string&
                        case LXVST:
                                compstr = X_("LXVST");
                                break;
+                       case MacVST:
+                               compstr = X_("MacVST");
+                               break;
                        case Lua:
                                compstr = X_("Lua");
                                break;
@@ -390,6 +393,7 @@ PluginSelector::refill ()
        lv2_refiller (filterstr);
        vst_refiller (filterstr);
        lxvst_refiller (filterstr);
+       mac_vst_refiller (filterstr);
        au_refiller (filterstr);
        lua_refiller (filterstr);
 
@@ -501,6 +505,18 @@ PluginSelector::lxvst_refiller (const std::string&)
 #endif
 }
 
+void
+#ifdef MACVST_SUPPORT
+PluginSelector::mac_vst_refiller (const std::string& filterstr)
+#else
+PluginSelector::mac_vst_refiller (const std::string&)
+#endif
+{
+#ifdef MACVST_SUPPORT
+       refiller (manager.mac_vst_plugin_info(), filterstr, "MacVST");
+#endif
+}
+
 void
 #ifdef AUDIOUNIT_SUPPORT
 PluginSelector::au_refiller (const std::string& filterstr)
@@ -736,6 +752,9 @@ PluginSelector::build_plugin_menu ()
 #ifdef LXVST_SUPPORT
        all_plugs.insert (all_plugs.end(), manager.lxvst_plugin_info().begin(), manager.lxvst_plugin_info().end());
 #endif
+#ifdef MACVST_SUPPORT
+       all_plugs.insert (all_plugs.end(), manager.mac_vst_plugin_info().begin(), manager.mac_vst_plugin_info().end());
+#endif
 #ifdef AUDIOUNIT_SUPPORT
        all_plugs.insert (all_plugs.end(), manager.au_plugin_info().begin(), manager.au_plugin_info().end());
 #endif