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/io_selector.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/io_selector.cc')
-rw-r--r-- | gtk2_ardour/io_selector.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc index 2b7038e61e..963b03ba3f 100644 --- a/gtk2_ardour/io_selector.cc +++ b/gtk2_ardour/io_selector.cc @@ -166,8 +166,6 @@ IOSelectorWindow::IOSelectorWindow (ARDOUR::Session& session, boost::shared_ptr< show_all (); signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), this)); - - resize (32768, 32768); } void @@ -178,6 +176,14 @@ IOSelectorWindow::on_map () } void +IOSelectorWindow::on_show () +{ + Gtk::Window::on_show (); + pair<uint32_t, uint32_t> const pm_max = _selector.max_size (); + resize_window_to_proportion_of_monitor (this, pm_max.first, pm_max.second); +} + +void IOSelectorWindow::io_name_changed (void* src) { ENSURE_GUI_THREAD(bind (mem_fun(*this, &IOSelectorWindow::io_name_changed), src)); |