summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-27 17:37:07 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-27 17:37:07 +0000
commitb2e163a410a62a20e982b3baac0cf65e611acbce (patch)
tree1e404d3f4f9b33ddde56580d7b4fb02d1432b331 /gtk2_ardour/port_matrix_column_labels.h
parent9cc7b452ebb8fe8f348ad6aad18054703700da18 (diff)
A few cleanups. Also make port matrix notice when routes or processors change.
git-svn-id: svn://localhost/ardour2/branches/3.0@4447 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.h')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.h b/gtk2_ardour/port_matrix_column_labels.h
index 213b760a25..9021ec55e3 100644
--- a/gtk2_ardour/port_matrix_column_labels.h
+++ b/gtk2_ardour/port_matrix_column_labels.h
@@ -57,6 +57,10 @@ private:
double channel_x (PortMatrixBundleChannel const &) const;
void queue_draw_for (PortMatrixNode const &);
+ double slanted_height () const {
+ return _height - _highest_group_name - 2 * name_pad();
+ }
+
std::vector<boost::shared_ptr<ARDOUR::Bundle> > _bundles;
double _longest_bundle_name;
double _longest_channel_name;