diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-24 18:24:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-24 18:24:06 +0000 |
commit | 6d21e901cdd92c16cfc18df689115fef73c2ec11 (patch) | |
tree | 0b0ab3af65ad258241bc5b277454523a53acbd2d /gtk2_ardour/port_matrix.cc | |
parent | 04d412d3c7afdb18ca0f80dbefedfa7036f79012 (diff) |
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
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 3ed3f926b3..1c89a36af7 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -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); |