summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-24 13:28:27 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-24 13:28:27 +0000
commit2ba936f0b3ae0472653c1d47c11819c8c5c70cce (patch)
tree942396cd21490d625aadcce749829a1ef2fcea22 /gtk2_ardour/port_matrix.cc
parent211b57b3038ccb01d3b852e43940ba24f8ba5463 (diff)
Fix port matrix menu checkbox when the window is closed. Make the port matrix origin the bottom left when tabs are on left and bottom. Don't shrink the port matrix when auto-resizing it.
git-svn-id: svn://localhost/ardour2/branches/3.0@7673 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix.cc')
-rw-r--r--gtk2_ardour/port_matrix.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc
index f3559cbb21..3be5458973 100644
--- a/gtk2_ardour/port_matrix.cc
+++ b/gtk2_ardour/port_matrix.cc
@@ -787,7 +787,16 @@ PortMatrix::body_dimensions_changed ()
_vspacer.hide ();
}
- pair<uint32_t, uint32_t> const m = max_size ();
+ int curr_width;
+ int curr_height;
+ _parent->get_size (curr_width, curr_height);
+
+ pair<uint32_t, uint32_t> m = max_size ();
+
+ /* Don't shrink the window */
+ m.first = max (int (m.first), curr_width);
+ m.second = max (int (m.second), curr_height);
+
resize_window_to_proportion_of_monitor (_parent, m.first, m.second);
}