diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 291800615d..b08b5a3a0f 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -38,6 +38,7 @@ #include #include #include +#include #include "midi++/manager.h" @@ -291,8 +292,7 @@ PluginUIWindow::create_audiounit_editor (boost::shared_ptr) _pluginui->KeyboardFocused.connect (sigc::mem_fun (*this, &PluginUIWindow::keyboard_focused)); add (*box); - extern sigc::signal ApplicationActivationChanged; - ApplicationActivationChanged.connect (sigc::mem_fun (*this, &PluginUIWindow::app_activated)); + Application::instance()->ActivationChanged.connect (mem_fun (*this, &PluginUIWindow::app_activated)); return true; #endif