summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-11-10 03:16:57 +0000
committerCarl Hetherington <carl@carlh.net>2009-11-10 03:16:57 +0000
commitdbb0b9ca4f82ea8e3829cfeb009b9746c3d6f0dc (patch)
tree2419b9eb122cf19a28940ea115c2d9630d0a22cc /gtk2_ardour/port_matrix_column_labels.cc
parentda03bc931b4c82497fb4b02003804c18768c56b6 (diff)
Various adjustments to user bundle handling, with the general aim of allowing the user to create meaningful bundles with respect to their sound card an outboard setup, and having those user bundles take priority over ardour-generated ones.
git-svn-id: svn://localhost/ardour2/branches/3.0@6050 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc24
1 files changed, 15 insertions, 9 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index fa3d3dd030..70476af7af 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -424,15 +424,21 @@ PortMatrixColumnLabels::render_channel_name (
);
}
- cairo_save (cr);
- cairo_rotate (cr, -angle());
-
- cairo_show_text (
- cr,
- bc.bundle->channel_name(bc.channel).c_str()
- );
-
- cairo_restore (cr);
+ if (bc.bundle->nchannels() > 1) {
+
+ /* only plot the name if the bundle has more than one channel;
+ the name of a single channel is assumed to be redundant */
+
+ cairo_save (cr);
+ cairo_rotate (cr, -angle());
+
+ cairo_show_text (
+ cr,
+ bc.bundle->channel_name(bc.channel).c_str()
+ );
+
+ cairo_restore (cr);
+ }
}
double