summaryrefslogtreecommitdiff
path: root/gtk2_ardour/global_port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-18 13:10:08 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-18 13:10:08 +0000
commitaf5b9f92a52f08d154ad84c60c61823cb45b62db (patch)
tree7dd95f16010440218d6320efc7b05ff47e8b5218 /gtk2_ardour/global_port_matrix.cc
parent000802d23f3ccf0eccb8681716cce228106b753c (diff)
Various tweaks to the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@5380 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/global_port_matrix.cc')
-rw-r--r--gtk2_ardour/global_port_matrix.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk2_ardour/global_port_matrix.cc b/gtk2_ardour/global_port_matrix.cc
index b19c383565..64ed8e04d9 100644
--- a/gtk2_ardour/global_port_matrix.cc
+++ b/gtk2_ardour/global_port_matrix.cc
@@ -128,13 +128,31 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (ARDOUR::Session& s, ARDOUR::Data
people with very large monitors */
resize (32768, 32768);
+
+ _port_matrix.MaxSizeChanged.connect (mem_fun (*this, &GlobalPortMatrixWindow::max_size_changed));
}
void
GlobalPortMatrixWindow::on_realize ()
{
Window::on_realize ();
+ set_max_size ();
+}
+void
+GlobalPortMatrixWindow::max_size_changed ()
+{
+ set_max_size ();
+ resize (32768, 32768);
+}
+
+void
+GlobalPortMatrixWindow::set_max_size ()
+{
+ if ((get_flags() & Gtk::REALIZED) == 0) {
+ return;
+ }
+
pair<uint32_t, uint32_t> const m = _port_matrix.max_size ();
GdkGeometry g;