diff options
author | Carl Hetherington <carl@carlh.net> | 2009-11-18 13:35:31 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-11-18 13:35:31 +0000 |
commit | 73a0cd56f8bab790e0bbcf09b4f51e20175f4dc8 (patch) | |
tree | 4589913ad551505381b0a7ac0a0c5277ce67148e /gtk2_ardour/port_matrix_body.cc | |
parent | ef92349187b61349d2d5182f49f700183901f59e (diff) |
Rework port matrix to use Gtk notebook tabs to select visible groups.
git-svn-id: svn://localhost/ardour2/branches/3.0@6117 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_body.cc')
-rw-r--r-- | gtk2_ardour/port_matrix_body.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix_body.cc b/gtk2_ardour/port_matrix_body.cc index 31f6d2be42..3d961baa5c 100644 --- a/gtk2_ardour/port_matrix_body.cc +++ b/gtk2_ardour/port_matrix_body.cc @@ -58,7 +58,7 @@ PortMatrixBody::~PortMatrixBody () bool PortMatrixBody::on_expose_event (GdkEventExpose* event) { - if (_matrix->columns()->empty() || _matrix->rows()->empty()) { + if (_matrix->visible_columns()->bundles().empty() || _matrix->visible_rows()->bundles().empty()) { /* nothing to connect */ @@ -446,7 +446,7 @@ PortMatrixBody::highlight_associated_channels (int dim, ARDOUR::BundleChannel h) _row_labels->add_channel_highlight (bc[dim]); } - PortGroup::BundleList const b = _matrix->ports(1 - dim)->bundles (); + PortGroup::BundleList const b = _matrix->visible_ports(1 - dim)->bundles (); for (PortGroup::BundleList::const_iterator i = b.begin(); i != b.end(); ++i) { for (uint32_t j = 0; j < i->bundle->nchannels(); ++j) { |