*/
#include <ardour/send.h>
-#include <gtkmmext/doi.h>
+#include <gtkmm2ext/doi.h>
#include "utils.h"
#include "send_ui.h"
#include "gui_thread.h"
using namespace ARDOUR;
+using namespace PBD;
SendUI::SendUI (Send& s, Session& se)
: _send (s),
_send.set_metering (true);
- _send.output_changed.connect (slot (*this, &SendUI::ins_changed));
- _send.output_changed.connect (slot (*this, &SendUI::outs_changed));
+ _send.output_changed.connect (mem_fun (*this, &SendUI::ins_changed));
+ _send.output_changed.connect (mem_fun (*this, &SendUI::outs_changed));
panners.set_width (Wide);
panners.setup_pan ();
gpm.setup_meters ();
gpm.set_fader_name ("SendUIFrame");
- screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (slot (*this, &SendUI::update));
- fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (slot (*this, &SendUI::fast_update));
+ // screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (mem_fun (*this, &SendUI::update));
+ fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (mem_fun (*this, &SendUI::fast_update));
}
SendUI::~SendUI ()
void
SendUI::ins_changed (IOChange change, void* ignored)
{
- ENSURE_GUI_THREAD(bind (slot (*this, &SendUI::ins_changed), change, ignored));
+ ENSURE_GUI_THREAD(bind (mem_fun (*this, &SendUI::ins_changed), change, ignored));
if (change & ConfigurationChanged) {
panners.setup_pan ();
}
void
SendUI::outs_changed (IOChange change, void* ignored)
{
- ENSURE_GUI_THREAD(bind (slot (*this, &SendUI::outs_changed), change, ignored));
+ ENSURE_GUI_THREAD(bind (mem_fun (*this, &SendUI::outs_changed), change, ignored));
if (change & ConfigurationChanged) {
panners.setup_pan ();
gpm.setup_meters ();
void
SendUI::send_going_away (Redirect *ignored)
{
- ENSURE_GUI_THREAD (bind (slot (*this, &SendUI::send_going_away), ignored));
+ ENSURE_GUI_THREAD (bind (mem_fun (*this, &SendUI::send_going_away), ignored));
delete this;
}
void
SendUI::update ()
{
- gpm.update_meters ();
}
void
SendUI::fast_update ()
{
if (_session.meter_falloff() > 0.0f) {
- gpm.update_meters_falloff ();
+ gpm.update_meters ();
}
}
add (vpacker);
set_name ("SendUIWindow");
- s.GoingAway.connect (slot (*this, &SendUIWindow::send_going_away));
+ s.GoingAway.connect (mem_fun (*this, &SendUIWindow::send_going_away));
- delete_event.connect (bind (slot (just_hide_it), reinterpret_cast<Window *> (this)));
+ signal_delete_event().connect (bind (ptr_fun (just_hide_it), reinterpret_cast<Window *> (this)));
}
void
SendUIWindow::send_going_away (Redirect *ignored)
{
- ENSURE_GUI_THREAD(bind (slot (*this, &SendUIWindow::send_going_away), ignored));
+ ENSURE_GUI_THREAD(bind (mem_fun (*this, &SendUIWindow::send_going_away), ignored));
delete this;
}