diff options
author | Carl Hetherington <carl@carlh.net> | 2009-08-29 20:48:11 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-08-29 20:48:11 +0000 |
commit | 7c49119be05c2a0fc324f6a13e91720ac66a5957 (patch) | |
tree | fbe62f03a5430857e995cd0ab1bd5f304bfd4444 /gtk2_ardour/bundle_manager.cc | |
parent | 94c5a98e025a8ef9976e5758a6504f1c9b90b16b (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/bundle_manager.cc')
-rw-r--r-- | gtk2_ardour/bundle_manager.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk2_ardour/bundle_manager.cc b/gtk2_ardour/bundle_manager.cc index d406dfe5f2..ba62d73f0e 100644 --- a/gtk2_ardour/bundle_manager.cc +++ b/gtk2_ardour/bundle_manager.cc @@ -29,6 +29,7 @@ #include "ardour/audioengine.h" #include "bundle_manager.h" #include "i18n.h" +#include "utils.h" using namespace std; using namespace ARDOUR; @@ -227,8 +228,14 @@ BundleEditor::BundleEditor (Session& session, boost::shared_ptr<UserBundle> bund } show_all (); +} - resize (32768, 32768); +void +BundleEditor::on_show () +{ + Gtk::Window::on_show (); + pair<uint32_t, uint32_t> const pm_max = _matrix.max_size (); + resize_window_to_proportion_of_monitor (this, pm_max.first, pm_max.second); } void @@ -403,7 +410,6 @@ BundleManager::bundle_changed (Bundle::Change c, boost::shared_ptr<UserBundle> b } } - NameChannelDialog::NameChannelDialog () : ArdourDialog (_("Add channel")), _adding (true) @@ -447,3 +453,4 @@ NameChannelDialog::get_name () const { return _name.get_text (); } + |