summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-01-13 11:08:51 +0100
committerRobin Gareus <robin@gareus.org>2014-01-13 11:08:51 +0100
commit35aed0efab378af00031c6a75187c962f05d7bd7 (patch)
tree93982529dea1a988987147921c56604073b765e2 /gtk2_ardour
parent1146d58d212423f67f19a490b6832d0496fa9e77 (diff)
ProcessorWindowProxy::processor_going_away takes care of deletion
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/port_insert_ui.cc11
-rw-r--r--gtk2_ardour/port_insert_ui.h1
-rw-r--r--gtk2_ardour/return_ui.cc10
-rw-r--r--gtk2_ardour/return_ui.h1
-rw-r--r--gtk2_ardour/send_ui.cc10
-rw-r--r--gtk2_ardour/send_ui.h1
6 files changed, 0 insertions, 34 deletions
diff --git a/gtk2_ardour/port_insert_ui.cc b/gtk2_ardour/port_insert_ui.cc
index 3c495f0e79..2a982eabc1 100644
--- a/gtk2_ardour/port_insert_ui.cc
+++ b/gtk2_ardour/port_insert_ui.cc
@@ -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
@@ -188,15 +186,6 @@ PortInsertWindow::wm_delete (GdkEventAny* /*event*/)
}
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 ()
{
_portinsertui.redisplay ();
diff --git a/gtk2_ardour/port_insert_ui.h b/gtk2_ardour/port_insert_ui.h
index d130ea16be..75a4ad17c0 100644
--- a/gtk2_ardour/port_insert_ui.h
+++ b/gtk2_ardour/port_insert_ui.h
@@ -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*);
diff --git a/gtk2_ardour/return_ui.cc b/gtk2_ardour/return_ui.cc
index 92846af469..29a8ddc16c 100644
--- a/gtk2_ardour/return_ui.cc
+++ b/gtk2_ardour/return_ui.cc
@@ -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);
-}
-
diff --git a/gtk2_ardour/return_ui.h b/gtk2_ardour/return_ui.h
index ab10e1f566..353985110d 100644
--- a/gtk2_ardour/return_ui.h
+++ b/gtk2_ardour/return_ui.h
@@ -68,7 +68,6 @@ class ReturnUIWindow : public ArdourWindow
private:
Gtk::HBox hpacker;
- void return_going_away ();
PBD::ScopedConnection going_away_connection;
};
diff --git a/gtk2_ardour/send_ui.cc b/gtk2_ardour/send_ui.cc
index 54663dbe0a..90ee52b3ad 100644
--- a/gtk2_ardour/send_ui.cc
+++ b/gtk2_ardour/send_ui.cc
@@ -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);
-}
-
diff --git a/gtk2_ardour/send_ui.h b/gtk2_ardour/send_ui.h
index 9f423bd6fe..731f079790 100644
--- a/gtk2_ardour/send_ui.h
+++ b/gtk2_ardour/send_ui.h
@@ -69,7 +69,6 @@ class SendUIWindow : public ArdourWindow
private:
Gtk::HBox hpacker;
- void send_going_away ();
PBD::ScopedConnection going_away_connection;
};