summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-06-20 13:41:55 +0000
committerCarl Hetherington <carl@carlh.net>2009-06-20 13:41:55 +0000
commitb895b677bf29cca95fe0626616d7495113386b04 (patch)
tree41f6e065356445cc769c797aa11e4226e0babe05 /gtk2_ardour/port_matrix_column_labels.cc
parent379b19cfdc1c05d93249c902d9a8dd7e5a7737d8 (diff)
Optional tabs down the LHS of the editor window to indicate edit group membership.
git-svn-id: svn://localhost/ardour2/branches/3.0@5220 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index 5c1749c4bc..a1ec392088 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -23,6 +23,7 @@
#include "port_matrix_column_labels.h"
#include "port_matrix.h"
#include "port_matrix_body.h"
+#include "utils.h"
PortMatrixColumnLabels::PortMatrixColumnLabels (PortMatrix* m, PortMatrixBody* b)
: PortMatrixLabels (m, b)
@@ -162,8 +163,9 @@ PortMatrixColumnLabels::render (cairo_t* cr)
cairo_rectangle (cr, x, _height - rh, w, rh);
}
cairo_fill (cr);
-
- std::pair<std::string, double> const display = display_port_name (cr, (*i)->name, w);
+
+ std::string const upper = Glib::ustring ((*i)->name).uppercase ();
+ std::pair<std::string, double> const display = fit_to_pixels (cr, upper, w);
/* plot it */
set_source_rgb (cr, text_colour());