13
0

Setup tab directions correctly depending on where they are located.

git-svn-id: svn://localhost/ardour2/branches/3.0@7676 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-24 18:24:06 +00:00
parent 04d412d3c7
commit 6d21e901cd

View File

@ -738,8 +738,13 @@ PortMatrix::setup_notebooks ()
_ignore_notebook_page_selected = false;
_vnotebook.set_tab_pos (POS_LEFT);
_hnotebook.set_tab_pos (POS_TOP);
if (_arrangement == TOP_TO_RIGHT) {
_vnotebook.set_tab_pos (POS_RIGHT);
_hnotebook.set_tab_pos (POS_TOP);
} else {
_vnotebook.set_tab_pos (POS_LEFT);
_hnotebook.set_tab_pos (POS_BOTTOM);
}
if (h_current_page != -1 && _hnotebook.get_n_pages() > h_current_page) {
_hnotebook.set_current_page (h_current_page);