diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-18 23:29:58 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-18 23:29:58 +0200 |
commit | bd6b4025dec1c2873e10196c829d1cbc7784d5bb (patch) | |
tree | 72172aa3d1ef32a2c7da46e92631823f4af7d9ee /gtk2_ardour/au_pluginui.mm | |
parent | 6ff50d21403a81ebeb0d371ee2a41f5dcd7fb17f (diff) |
one less deprecated API
Diffstat (limited to 'gtk2_ardour/au_pluginui.mm')
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 27949b1085..dbfbe11526 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -31,6 +31,11 @@ #include "public_editor.h" #include "i18n.h" +#ifdef COREAUDIO105 +#define ArdourCloseComponent CloseComponent +#else +#define ArdourCloseComponent AudioComponentInstanceDispose +#endif using namespace ARDOUR; using namespace Gtk; using namespace Gtkmm2ext; @@ -261,7 +266,7 @@ AUPluginUI::~AUPluginUI () #endif if (editView) { - CloseComponent (editView); + ArdourCloseComponent (editView); } if (au_view) { @@ -502,14 +507,14 @@ AUPluginUI::create_carbon_view () if ((err = CreateNewWindow(kUtilityWindowClass, attr, &r, &carbon_window)) != noErr) { error << string_compose (_("AUPluginUI: cannot create carbon window (err: %1)"), err) << endmsg; - CloseComponent (editView); + ArdourCloseComponent (editView); return -1; } if ((err = GetRootControl(carbon_window, &root_control)) != noErr) { error << string_compose (_("AUPlugin: cannot get root control of carbon window (err: %1)"), err) << endmsg; DisposeWindow (carbon_window); - CloseComponent (editView); + ArdourCloseComponent (editView); return -1; } @@ -520,7 +525,7 @@ AUPluginUI::create_carbon_view () if ((err = AudioUnitCarbonViewCreate (editView, *au->get_au(), carbon_window, root_control, &location, &size, &viewPane)) != noErr) { error << string_compose (_("AUPluginUI: cannot create carbon plugin view (err: %1)"), err) << endmsg; DisposeWindow (carbon_window); - CloseComponent (editView); + ArdourCloseComponent (editView); return -1; } |