From 6d21e901cdd92c16cfc18df689115fef73c2ec11 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 Aug 2010 18:24:06 +0000 Subject: 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 --- gtk2_ardour/port_matrix.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/port_matrix.cc') 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); -- cgit v1.2.3