summaryrefslogtreecommitdiff
path: root/gtk2_ardour/global_port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-08-29 20:48:11 +0000
committerCarl Hetherington <carl@carlh.net>2009-08-29 20:48:11 +0000
commit7c49119be05c2a0fc324f6a13e91720ac66a5957 (patch)
treefbe62f03a5430857e995cd0ab1bd5f304bfd4444 /gtk2_ardour/global_port_matrix.cc
parent94c5a98e025a8ef9976e5758a6504f1c9b90b16b (diff)
Modify hacks associated with initial sizing of port matrices to try and make things work with both fluxbox and metacity.
git-svn-id: svn://localhost/ardour2/branches/3.0@5604 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/global_port_matrix.cc')
-rw-r--r--gtk2_ardour/global_port_matrix.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/global_port_matrix.cc b/gtk2_ardour/global_port_matrix.cc
index 3e8eea8866..be809e44bd 100644
--- a/gtk2_ardour/global_port_matrix.cc
+++ b/gtk2_ardour/global_port_matrix.cc
@@ -20,6 +20,7 @@
#include <gtkmm/image.h>
#include <gtkmm/stock.h>
#include "global_port_matrix.h"
+#include "utils.h"
#include "ardour/bundle.h"
#include "ardour/session.h"
@@ -123,16 +124,12 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (ARDOUR::Session& s, ARDOUR::Data
add (_port_matrix);
show_all ();
-
- /* XXX: hack to make the window full-size on opening. This may not work for
- people with very large monitors */
-
- resize (32768, 32768);
}
void
GlobalPortMatrixWindow::on_show ()
{
Gtk::Window::on_show ();
- _port_matrix.setup_max_size ();
+ pair<uint32_t, uint32_t> const pm_max = _port_matrix.max_size ();
+ resize_window_to_proportion_of_monitor (this, pm_max.first, pm_max.second);
}