diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-23 01:10:56 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-23 01:10:56 +1100 |
commit | 410d4316b9fd97a6318dd99153ae5910d34a56cd (patch) | |
tree | 211b785d5fae344df23eadd688af6d23a1522f6f | |
parent | d04c16e9272c036b76d35ce8f5ea8786817ccb87 (diff) |
Center some windows known to be presented by ardour.
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 4e016d266a..361a29d39a 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3162,6 +3162,7 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name, list<string> const u = new_session->unknown_processors (); if (!u.empty()) { MissingPluginDialog d (_session, u); + d.set_position (Gtk::WIN_POS_CENTER); d.run (); } } @@ -4672,6 +4673,11 @@ int ARDOUR_UI::missing_file (Session*s, std::string str, DataType type) { MissingFileDialog dialog (s, str, type); + /** + * This dialog may appear many times in succession, so + * we can't use ArdourDialog's default WIN_POS_MOUSE. + */ + dialog.set_position (Gtk::WIN_POS_CENTER); dialog.show (); dialog.present (); @@ -4695,7 +4701,11 @@ int ARDOUR_UI::ambiguous_file (std::string file, std::vector<std::string> hits) { AmbiguousFileDialog dialog (file, hits); - + /** + * This dialog may appear many times in succession, so + * we can't use ArdourDialog's default WIN_POS_MOUSE. + */ + dialog.set_position (Gtk::WIN_POS_CENTER); dialog.show (); dialog.present (); |