Duh. Simplify previous commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@4520 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
eef9223835
commit
7666413e18
@ -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 ();
|
||||
}
|
||||
|
@ -63,11 +63,8 @@ public:
|
||||
GlobalPortMatrixWindow (ARDOUR::Session&, ARDOUR::DataType);
|
||||
|
||||
private:
|
||||
void rescan ();
|
||||
|
||||
GlobalPortMatrix _port_matrix;
|
||||
Gtk::Button _rescan_button;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user