ProcessorWindowProxy::processor_going_away takes care of deletion

This commit is contained in:
Robin Gareus 2014-01-13 11:08:51 +01:00
parent 1146d58d21
commit 35aed0efab
6 changed files with 0 additions and 34 deletions

View File

@ -176,8 +176,6 @@ PortInsertWindow::PortInsertWindow (ARDOUR::Session* sess, boost::shared_ptr<ARD
ok_but->signal_clicked().connect (sigc::mem_fun (*this, &PortInsertWindow::accept));
signal_delete_event().connect (sigc::mem_fun (*this, &PortInsertWindow::wm_delete), false);
pi->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&PortInsertWindow::plugin_going_away, this), gui_context());
}
bool
@ -187,15 +185,6 @@ PortInsertWindow::wm_delete (GdkEventAny* /*event*/)
return false;
}
void
PortInsertWindow::plugin_going_away ()
{
ENSURE_GUI_THREAD (*this, &PortInsertWindow::plugin_going_away)
going_away_connection.disconnect ();
delete_when_idle (this);
}
void
PortInsertWindow::on_map ()
{

View File

@ -67,7 +67,6 @@ class PortInsertWindow : public ArdourDialog
void cancel ();
void accept ();
void plugin_going_away ();
PBD::ScopedConnection going_away_connection;
bool wm_delete (GdkEventAny*);

View File

@ -110,19 +110,9 @@ ReturnUIWindow::ReturnUIWindow (boost::shared_ptr<Return> r, ARDOUR::Session* s)
set_name ("ReturnUIWindow");
r->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&ReturnUIWindow::return_going_away, this), gui_context());
}
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);
}

View File

@ -68,7 +68,6 @@ class ReturnUIWindow : public ArdourWindow
private:
Gtk::HBox hpacker;
void return_going_away ();
PBD::ScopedConnection going_away_connection;
};

View File

@ -133,19 +133,9 @@ SendUIWindow::SendUIWindow (boost::shared_ptr<Send> s, Session* session)
ui->show ();
hpacker.show ();
s->DropReferences.connect (going_away_connection, invalidator (*this), boost::bind (&SendUIWindow::send_going_away, this), gui_context());
}
SendUIWindow::~SendUIWindow ()
{
delete ui;
}
void
SendUIWindow::send_going_away ()
{
ENSURE_GUI_THREAD (*this, &SendUIWindow::send_going_away)
going_away_connection.disconnect ();
delete_when_idle (this);
}

View File

@ -69,7 +69,6 @@ class SendUIWindow : public ArdourWindow
private:
Gtk::HBox hpacker;
void send_going_away ();
PBD::ScopedConnection going_away_connection;
};