From b077f64f62a56e8c610e186ca18a92c278c1908a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 31 Oct 2011 22:44:07 +0000 Subject: 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 --- gtk2_ardour/port_matrix.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/port_matrix.cc') 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) { -- cgit v1.2.3