show_all ();
_return->set_metering (true);
- _return->input()->changed.connect (sigc::mem_fun (*this, &ReturnUI::ins_changed));
+ _return->input()->changed.connect (input_change_connection, invalidator (*this), ui_bind (&ReturnUI::ins_changed, this, _1, _2), gui_context());
_gpm.setup_meters ();
_gpm.set_fader_name ("ReturnUIFrame");
}
ReturnUIWindow::ReturnUIWindow (boost::shared_ptr<Return> r, ARDOUR::Session* s)
- : ArdourDialog (string("Ardour: return ") + r->name())
+ : ArdourDialog (string(_("Return ")) + r->name())
{
ui = new ReturnUI (this, r, s);
set_name ("ReturnUIWindow");
- going_away_connection = r->GoingAway.connect (sigc::mem_fun (*this, &ReturnUIWindow::return_going_away));
+ r->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&ReturnUIWindow::return_going_away, this), gui_context());
signal_delete_event().connect (sigc::bind (sigc::ptr_fun (just_hide_it), reinterpret_cast<Window *> (this)));
}