summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-02-10 15:58:03 +0000
committerCarl Hetherington <carl@carlh.net>2009-02-10 15:58:03 +0000
commit7666413e1837214f2350330ce1d257a499a9344f (patch)
treefb7590db8afca5951e0fcda53a821a6df866a1a2 /gtk2_ardour
parenteef922383510830de4efa8a3096fce011b2e6b9f (diff)
Duh. Simplify previous commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@4520 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/global_port_matrix.cc8
-rw-r--r--gtk2_ardour/global_port_matrix.h3
2 files changed, 1 insertions, 10 deletions
diff --git a/gtk2_ardour/global_port_matrix.cc b/gtk2_ardour/global_port_matrix.cc
index 10a28b128d..5f5f8d64c3 100644
--- a/gtk2_ardour/global_port_matrix.cc
+++ b/gtk2_ardour/global_port_matrix.cc
@@ -120,7 +120,7 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (ARDOUR::Session& s, ARDOUR::Data
_rescan_button.set_label (_("Rescan"));
_rescan_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::REFRESH, Gtk::ICON_SIZE_BUTTON)));
- _rescan_button.signal_clicked().connect (sigc::mem_fun (*this, &GlobalPortMatrixWindow::rescan));
+ _rescan_button.signal_clicked().connect (sigc::mem_fun (_port_matrix, &GlobalPortMatrix::setup_all_ports));
buttons_hbox->pack_start (_rescan_button, Gtk::PACK_SHRINK);
Gtk::VBox* vbox = Gtk::manage (new Gtk::VBox);
@@ -129,9 +129,3 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (ARDOUR::Session& s, ARDOUR::Data
add (*vbox);
show_all ();
}
-
-void
-GlobalPortMatrixWindow::rescan ()
-{
- _port_matrix.setup_all_ports ();
-}
diff --git a/gtk2_ardour/global_port_matrix.h b/gtk2_ardour/global_port_matrix.h
index db742252ad..5a00ed4c75 100644
--- a/gtk2_ardour/global_port_matrix.h
+++ b/gtk2_ardour/global_port_matrix.h
@@ -63,11 +63,8 @@ public:
GlobalPortMatrixWindow (ARDOUR::Session&, ARDOUR::DataType);
private:
- void rescan ();
-
GlobalPortMatrix _port_matrix;
Gtk::Button _rescan_button;
-
};