summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authornick_m <mainsbridge@gmail.com>2015-03-15 03:06:39 +1100
committernick_m <mainsbridge@gmail.com>2015-03-15 03:06:39 +1100
commit7d188c8a1e648457afbdeed71bddabb395565e4d (patch)
treed8b3d165e5f0efcc0a8a7135ae11dec08f88995c /gtk2_ardour/ardour_ui.cc
parent80e1687482e653ecc3d92397451d54ade0a213f4 (diff)
Remove the use of Window::set_keep_above() throughout startup.
This has been tested, but needs testing on more platforms (check for obscured windows/dialogs. Also use WIN_POS_CENTER in the "ask about loading session" dialog.
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 9a83ec0c9b..597bb5df87 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -489,7 +489,6 @@ the audio backend and save the session."), PROGRAM_NAME);
MessageDialog msg (*editor, msgstr);
pop_back_splash (msg);
- msg.set_keep_above (true);
msg.run ();
if (free_reason) {
@@ -1119,7 +1118,6 @@ ARDOUR_UI::ask_about_saving_session (const vector<string>& actions)
prompt_label.show();
dimage->show();
window.show();
- window.set_keep_above (true);
window.present ();
ResponseType r = (ResponseType) window.run();
@@ -2609,7 +2607,7 @@ ARDOUR_UI::ask_about_loading_existing_session (const std::string& session_path)
msg.set_name (X_("OpenExistingDialog"));
msg.set_title (_("Open Existing Session"));
msg.set_wmclass (X_("existing_session"), PROGRAM_NAME);
- msg.set_position (Gtk::WIN_POS_MOUSE);
+ msg.set_position (Gtk::WIN_POS_CENTER);
pop_back_splash (msg);
switch (msg.run()) {
@@ -3003,7 +3001,6 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name,
Gtk::MESSAGE_INFO,
BUTTONS_OK);
- msg.set_keep_above (true);
msg.set_title (_("Loading Error"));
msg.set_position (Gtk::WIN_POS_CENTER);
pop_back_splash (msg);
@@ -3027,8 +3024,7 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name,
true,
Gtk::MESSAGE_INFO,
BUTTONS_OK);
-
- msg.set_keep_above (true);
+
msg.set_title (_("Read-only Session"));
msg.set_position (Gtk::WIN_POS_CENTER);
pop_back_splash (msg);