diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-20 13:41:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-20 13:41:55 +0000 |
commit | b895b677bf29cca95fe0626616d7495113386b04 (patch) | |
tree | 41f6e065356445cc769c797aa11e4226e0babe05 /gtk2_ardour/port_matrix_row_labels.cc | |
parent | 379b19cfdc1c05d93249c902d9a8dd7e5a7737d8 (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_row_labels.cc')
-rw-r--r-- | gtk2_ardour/port_matrix_row_labels.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix_row_labels.cc b/gtk2_ardour/port_matrix_row_labels.cc index 8334b7b44f..799fb8c14f 100644 --- a/gtk2_ardour/port_matrix_row_labels.cc +++ b/gtk2_ardour/port_matrix_row_labels.cc @@ -25,6 +25,7 @@ #include "port_matrix.h" #include "port_matrix_body.h" #include "i18n.h" +#include "utils.h" PortMatrixRowLabels::PortMatrixRowLabels (PortMatrix* m, PortMatrixBody* b) : PortMatrixLabels (m, b) @@ -131,7 +132,8 @@ PortMatrixRowLabels::render (cairo_t* cr) cairo_fill (cr); /* hence what abbreviation (or not) we need for the group name */ - std::pair<std::string, double> display = display_port_name (cr, (*i)->name, h); + std::string const upper = Glib::ustring ((*i)->name).uppercase (); + std::pair<std::string, double> display = fit_to_pixels (cr, upper, h); /* plot it */ set_source_rgb (cr, text_colour()); |