Duh. Simplify previous commit.
authorCarl Hetherington <carl@carlh.net>
Tue, 10 Feb 2009 15:58:03 +0000 (15:58 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 10 Feb 2009 15:58:03 +0000 (15:58 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4520 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/global_port_matrix.cc
gtk2_ardour/global_port_matrix.h

index 10a28b128d7a3666f4bf0d25bd294152e925e395..5f5f8d64c3f3862604d888ca2ff6723b977e256f 100644 (file)
@@ -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 ();
-}
index db742252ad894a3cb6bf04bc60df20ce50992016..5a00ed4c75d415ca8c6e41fca6cdffd6ff27ca2d 100644 (file)
@@ -63,11 +63,8 @@ public:
        GlobalPortMatrixWindow (ARDOUR::Session&, ARDOUR::DataType);
 
 private:
-       void rescan ();
-       
        GlobalPortMatrix _port_matrix;
        Gtk::Button _rescan_button;
-
 };