summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-10-31 22:44:07 +0000
committerCarl Hetherington <carl@carlh.net>2011-10-31 22:44:07 +0000
commitb077f64f62a56e8c610e186ca18a92c278c1908a (patch)
tree78568f65a967b56ed641f71fb667d74d299691f9 /gtk2_ardour/port_matrix.cc
parent44bfe88366f7448d7357f14277eee35f5bc7019f (diff)
Reverse the order of vertical tabs in the port matrix
when they are on the right hand side, for reasons explained in the comment. git-svn-id: svn://localhost/ardour2/branches/3.0@10366 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index 9336d520e8..8d4a8e5696 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -765,7 +765,15 @@ PortMatrix::setup_notebooks ()
Label* label = manage (new Label ((*i)->name));
label->set_angle (_arrangement == LEFT_TO_BOTTOM ? 90 : -90);
label->show ();
- _vnotebook.prepend_page (*dummy, *label);
+ if (_arrangement == LEFT_TO_BOTTOM) {
+ _vnotebook.prepend_page (*dummy, *label);
+ } else {
+ /* Reverse the order of vertical tabs when they are on the right hand side
+ so that from top to bottom it is the same order as that from left to right
+ for the top tabs.
+ */
+ _vnotebook.append_page (*dummy, *label);
+ }
}
for (PortGroupList::List::const_iterator i = _ports[_column_index].begin(); i != _ports[_column_index].end(); ++i) {