Major Theme Manager changes, see ardour-dev
[ardour.git] / gtk2_ardour / send_ui.cc
index 9925ff51d4331caf405f79a8ab3cf2d751d445dd..8faa3158481c1bd6b9921d272a320689392d6ad5 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include <ardour/send.h>
@@ -97,14 +96,6 @@ SendUI::outs_changed (IOChange change, void* ignored)
        }
 }
 
-void
-SendUI::send_going_away (Redirect *ignored)
-{
-       ENSURE_GUI_THREAD (bind (mem_fun (*this, &SendUI::send_going_away), ignored));
-
-       delete this;
-}
-
 void
 SendUI::update ()
 {
@@ -113,7 +104,7 @@ SendUI::update ()
 void
 SendUI::fast_update ()
 {
-       if (_session.meter_falloff() > 0.0f) {
+       if (Config->get_meter_falloff() > 0.0f) {
                gpm.update_meters ();
        }
 }
@@ -143,10 +134,9 @@ SendUIWindow::~SendUIWindow ()
 }
 
 void
-SendUIWindow::send_going_away (Redirect *ignored)
+SendUIWindow::send_going_away ()
 {
-       ENSURE_GUI_THREAD(bind (mem_fun (*this, &SendUIWindow::send_going_away), ignored));
-       
-       delete this;
+       ENSURE_GUI_THREAD (mem_fun (*this, &SendUIWindow::send_going_away));
+       delete_when_idle (this);
 }