re-add TLSF
[ardour.git] / gtk2_ardour / send_ui.cc
index cdd8673da975cbe1818df55145a8dc3a61f84abc..364e44c7b0113b43495830a4a6150a1bff84bd2e 100644 (file)
 #include "ardour/send.h"
 #include "ardour/rc_configuration.h"
 
-#include "utils.h"
 #include "send_ui.h"
 #include "io_selector.h"
-#include "ardour_ui.h"
+#include "timers.h"
 #include "gui_thread.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -44,7 +43,7 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr<Send> s, Session* session
        assert (_send);
 
        _panners.set_panner (s->panner_shell(), s->panner());
-       _gpm.set_controls (boost::shared_ptr<Route>(), s->meter(), s->amp());
+       _gpm.set_controls (boost::shared_ptr<Route>(), s->meter(), s->amp(), s->gain_control());
 
        _hbox.pack_start (_gpm, true, true);
        set_name (X_("SendUIFrame"));
@@ -55,7 +54,7 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr<Send> s, Session* session
        _vbox.pack_start (_hbox, false, false, false);
        _vbox.pack_start (_panners, false, false);
 
-       io = manage (new IOSelector (parent, session, s->output()));
+       io = Gtk::manage (new IOSelector (parent, session, s->output()));
 
        pack_start (_vbox, false, false);
 
@@ -81,9 +80,9 @@ SendUI::SendUI (Gtk::Window* parent, boost::shared_ptr<Send> s, Session* session
        _gpm.setup_meters ();
        _gpm.set_fader_name (X_("SendUIFader"));
 
-       // screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (
+       // screen_update_connection = Timers::rapid_connect (
        //              sigc::mem_fun (*this, &SendUI::update));
-       fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (
+       fast_screen_update_connection = Timers::super_rapid_connect (
                        sigc::mem_fun (*this, &SendUI::fast_update));
 }