diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-05-21 23:01:40 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-05-21 23:01:40 +0000 |
commit | 7a9b4a0aa2f5ccdcd9257a0df12917c0e3b1fd91 (patch) | |
tree | 77f80e68cda1f359dabc6ac4fe2721827a207088 /gtk2_ardour | |
parent | 96384d65a67648fcbf617d2cea1fdd47b907c112 (diff) |
* bugfix: Inputs and Outputs swapped in the Track/Bus Inspector
* bugfix: control_to_midi_event has no effect
* typo (track/bus inspector)
git-svn-id: svn://localhost/ardour2/branches/3.0@3379 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/io_selector.cc | 22 | ||||
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc index f0d589c138..1708c9036e 100644 --- a/gtk2_ardour/io_selector.cc +++ b/gtk2_ardour/io_selector.cc @@ -40,7 +40,7 @@ IOSelector::IOSelector (ARDOUR::Session& session, boost::shared_ptr<ARDOUR::IO> _io (io) { /* Listen for ports changing on the IO */ - if (!offer_inputs) { + if (_offer_inputs) { _io->input_changed.connect (mem_fun(*this, &IOSelector::ports_changed)); } else { _io->output_changed.connect (mem_fun(*this, &IOSelector::ports_changed)); @@ -69,13 +69,13 @@ void IOSelector::set_state (int r, std::string const & p, bool s) { if (s) { - if (!_offer_inputs) { + if (_offer_inputs) { _io->connect_input (_io->input(r), p, 0); } else { _io->connect_output (_io->output(r), p, 0); } } else { - if (!_offer_inputs) { + if (_offer_inputs) { _io->disconnect_input (_io->input(r), p, 0); } else { _io->disconnect_output (_io->output(r), p, 0); @@ -89,9 +89,9 @@ IOSelector::get_state (int r, std::string const & p) const vector<string> connections; if (_offer_inputs) { - _io->output(r)->get_connections (connections); - } else { _io->input(r)->get_connections (connections); + } else { + _io->output(r)->get_connections (connections); } int k = 0; @@ -110,7 +110,7 @@ IOSelector::get_state (int r, std::string const & p) const uint32_t IOSelector::n_rows () const { - if (!_offer_inputs) { + if (_offer_inputs) { return _io->inputs().num_ports (_io->default_type()); } else { return _io->outputs().num_ports (_io->default_type()); @@ -120,7 +120,7 @@ IOSelector::n_rows () const uint32_t IOSelector::maximum_rows () const { - if (!_offer_inputs) { + if (_offer_inputs) { return _io->input_maximum ().get (_io->default_type()); } else { return _io->output_maximum ().get (_io->default_type()); @@ -131,7 +131,7 @@ IOSelector::maximum_rows () const uint32_t IOSelector::minimum_rows () const { - if (!_offer_inputs) { + if (_offer_inputs) { return _io->input_minimum ().get (_io->default_type()); } else { return _io->output_minimum ().get (_io->default_type()); @@ -141,7 +141,7 @@ IOSelector::minimum_rows () const std::string IOSelector::row_name (int r) const { - if (!_offer_inputs) { + if (_offer_inputs) { return _io->input(r)->name(); } else { return _io->output(r)->name(); @@ -155,7 +155,7 @@ IOSelector::add_row () // The IO selector only works for single typed IOs const ARDOUR::DataType t = _io->default_type (); - if (!_offer_inputs) { + if (_offer_inputs) { try { _io->add_input_port ("", this); @@ -186,7 +186,7 @@ IOSelector::remove_row (int r) // The IO selector only works for single typed IOs const ARDOUR::DataType t = _io->default_type (); - if (!_offer_inputs) { + if (_offer_inputs) { _io->remove_input_port (_io->input (r), this); } else { _io->remove_output_port (_io->output (r), this); diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index f47a4ff191..425ad80bbc 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -601,7 +601,7 @@ PortMatrix::set_offer_inputs (bool i) PortGroupList::PortGroupList (ARDOUR::Session & session, ARDOUR::DataType type, bool offer_inputs, Mask mask) : _session (session), _type (type), _offer_inputs (offer_inputs), - buss (_("Buss"), "ardour:", mask & BUSS), + buss (_("Bus"), "ardour:", mask & BUSS), track (_("Track"), "ardour:", mask & TRACK), system (_("System"), "system:", mask & SYSTEM), other (_("Other"), "", mask & OTHER) |