diff options
author | Carl Hetherington <carl@carlh.net> | 2009-11-18 14:04:59 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-11-18 14:04:59 +0000 |
commit | 51bdbf692593b22fed05878843c6754ec41745cf (patch) | |
tree | 5832970dcde389c902efa7febcd2d33f1d3a21ae /gtk2_ardour/port_matrix.cc | |
parent | 73a0cd56f8bab790e0bbcf09b4f51e20175f4dc8 (diff) |
Port port group type labels in-line with the tabs.
git-svn-id: svn://localhost/ardour2/branches/3.0@6118 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r-- | gtk2_ardour/port_matrix.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index ae6fcd1147..00a7f819e2 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -46,7 +46,7 @@ using namespace ARDOUR; * @param type Port type that we are handling. */ PortMatrix::PortMatrix (Window* parent, Session& session, DataType type) - : Table (4, 4), + : Table (3, 3), _session (session), _parent (parent), _type (type), @@ -61,13 +61,16 @@ PortMatrix::PortMatrix (Window* parent, Session& session, DataType type) { _body = new PortMatrixBody (this); - attach (*_body, 2, 3, 2, 3); - attach (_vscroll, 3, 4, 2, 3, SHRINK); - attach (_hscroll, 2, 3, 3, 4, FILL | EXPAND, SHRINK); - attach (_vlabel, 0, 1, 2, 3, SHRINK); - attach (_hlabel, 2, 3, 0, 1, FILL | EXPAND, SHRINK); - attach (_vnotebook, 1, 2, 2, 3, SHRINK); - attach (_hnotebook, 2, 3, 1, 2, FILL | EXPAND, SHRINK); + _vbox.pack_start (_vnotebook); + _vbox.pack_start (_vlabel); + _hbox.pack_start (_hnotebook); + _hbox.pack_start (_hlabel); + + attach (*_body, 1, 2, 1, 2); + attach (_vscroll, 2, 3, 1, 2, SHRINK); + attach (_hscroll, 1, 2, 2, 3, FILL | EXPAND, SHRINK); + attach (_vbox, 0, 1, 1, 2, SHRINK); + attach (_hbox, 1, 2, 0, 1, FILL | EXPAND, SHRINK); _vnotebook.signal_switch_page().connect (mem_fun (*this, &PortMatrix::v_page_selected)); _hnotebook.signal_switch_page().connect (mem_fun (*this, &PortMatrix::h_page_selected)); |