X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Freturn_ui.cc;h=b6412bbe7ae06934f19c5a9ccc9e8c70f5631dc3;hb=c292cd95ac7d8dbdf34b7f84e6a24f4c312f8710;hp=6edd57a28625b8f87562265305f3f67e0061fb30;hpb=05283a63398fd7a563480a76802e6b2c2ad2e404;p=ardour.git diff --git a/gtk2_ardour/return_ui.cc b/gtk2_ardour/return_ui.cc index 6edd57a286..b6412bbe7a 100644 --- a/gtk2_ardour/return_ui.cc +++ b/gtk2_ardour/return_ui.cc @@ -19,16 +19,14 @@ #include -#include "ardour/amp.h" #include "ardour/io.h" -#include "ardour/return.h" #include "ardour/rc_configuration.h" +#include "ardour/return.h" -#include "utils.h" #include "return_ui.h" #include "io_selector.h" -#include "ardour_ui.h" #include "gui_thread.h" +#include "timers.h" #include "i18n.h" @@ -43,14 +41,14 @@ ReturnUI::ReturnUI (Gtk::Window* parent, boost::shared_ptr r, Session* s _gpm.set_controls (boost::shared_ptr(), r->meter(), r->amp()); _hbox.pack_start (_gpm, true, true); - set_name ("ReturnUIFrame"); + set_name (X_("ReturnUIFrame")); _vbox.set_spacing (5); _vbox.set_border_width (5); _vbox.pack_start (_hbox, false, false, false); - io = manage (new IOSelector (parent, session, r->output())); + io = Gtk::manage (new IOSelector (parent, session, r->output())); pack_start (_vbox, false, false); @@ -59,13 +57,13 @@ ReturnUI::ReturnUI (Gtk::Window* parent, boost::shared_ptr r, Session* s show_all (); _return->set_metering (true); - _return->input()->changed.connect (input_change_connection, invalidator (*this), ui_bind (&ReturnUI::ins_changed, this, _1, _2), gui_context()); + _return->input()->changed.connect (input_change_connection, invalidator (*this), boost::bind (&ReturnUI::ins_changed, this, _1, _2), gui_context()); _gpm.setup_meters (); - _gpm.set_fader_name ("ReturnUIFrame"); + _gpm.set_fader_name (X_("ReturnUIFader")); - // screen_update_connection = ARDOUR_UI::instance()->RapidScreenUpdate.connect (sigc::mem_fun (*this, &ReturnUI::update)); - fast_screen_update_connection = ARDOUR_UI::instance()->SuperRapidScreenUpdate.connect (sigc::mem_fun (*this, &ReturnUI::fast_update)); + // screen_update_connection = Timers::rapid_connect (sigc::mem_fun (*this, &ReturnUI::update)); + fast_screen_update_connection = Timers::super_rapid_connect (sigc::mem_fun (*this, &ReturnUI::fast_update)); } ReturnUI::~ReturnUI () @@ -111,20 +109,9 @@ ReturnUIWindow::ReturnUIWindow (boost::shared_ptr r, ARDOUR::Session* s) set_name ("ReturnUIWindow"); - 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 (this))); } ReturnUIWindow::~ReturnUIWindow () { delete ui; } - -void -ReturnUIWindow::return_going_away () -{ - ENSURE_GUI_THREAD (*this, &ReturnUIWindow::return_going_away) - going_away_connection.disconnect (); - delete_when_idle (this); -} -