From 04d412d3c7afdb18ca0f80dbefedfa7036f79012 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 Aug 2010 14:27:35 +0000 Subject: [PATCH] Put a bit of padding between the tabs and the window edge. git-svn-id: svn://localhost/ardour2/branches/3.0@7675 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.cc | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index 50bade3a9e..3ed3f926b3 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 (3, 3) + : Table (4, 4) , _parent (parent) , _type (type) , _menu (0) @@ -83,6 +83,11 @@ PortMatrix::PortMatrix (Window* parent, Session* session, DataType type) _hlabel.set_padding (16, 4); _hlabel.set_name (X_("PortMatrixLabel")); + set_row_spacing (0, 8); + set_col_spacing (0, 8); + set_row_spacing (2, 8); + set_col_spacing (2, 8); + _body->show (); _vbox.show (); _hbox.show (); @@ -319,14 +324,11 @@ PortMatrix::select_arrangement () _vbox.pack_end (_vnotebook, false, false); _vbox.pack_end (_vspacer, true, true); - attach (*_body, 1, 2, 0, 1, FILL | EXPAND, FILL | EXPAND); - attach (_vscroll, 2, 3, 0, 1, SHRINK); - attach (_hscroll, 1, 2, 2, 3, FILL | EXPAND, SHRINK); - attach (_vbox, 0, 1, 0, 1, SHRINK); - attach (_hbox, 1, 2, 1, 2, FILL | EXPAND, SHRINK); - - set_col_spacing (0, 4); - set_row_spacing (0, 4); + attach (*_body, 2, 3, 1, 2, FILL | EXPAND, FILL | EXPAND); + attach (_vscroll, 3, 4, 1, 2, SHRINK); + attach (_hscroll, 2, 3, 3, 4, FILL | EXPAND, SHRINK); + attach (_vbox, 1, 2, 1, 2, SHRINK); + attach (_hbox, 2, 3, 2, 3, FILL | EXPAND, SHRINK); } else { @@ -341,14 +343,11 @@ PortMatrix::select_arrangement () _vbox.pack_end (_vnotebook, false, false); _vbox.pack_end (_vlabel, false, false); - attach (*_body, 0, 1, 1, 2, FILL | EXPAND, FILL | EXPAND); - attach (_vscroll, 2, 3, 1, 2, SHRINK); - attach (_hscroll, 0, 1, 2, 3, FILL | EXPAND, SHRINK); - attach (_vbox, 1, 2, 1, 2, SHRINK); - attach (_hbox, 0, 1, 0, 1, FILL | EXPAND, SHRINK); - - set_col_spacing (1, 4); - set_row_spacing (1, 4); + attach (*_body, 1, 2, 2, 3, FILL | EXPAND, FILL | EXPAND); + attach (_vscroll, 3, 4, 2, 3, SHRINK); + attach (_hscroll, 1, 2, 3, 4, FILL | EXPAND, SHRINK); + attach (_vbox, 2, 3, 2, 3, SHRINK); + attach (_hbox, 1, 2, 1, 2, FILL | EXPAND, SHRINK); } }