13
0

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.
This commit is contained in:
nick_m 2015-03-15 03:06:39 +11:00
parent 80e1687482
commit 7d188c8a1e
4 changed files with 2 additions and 12 deletions

View File

@ -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);

View File

@ -69,9 +69,6 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name,
, _master_bus_channel_count_adj (2, 0, 100, 1, 10, 0)
, _existing_session_chooser_used (false)
{
#ifndef PLATFORM_WINDOWS
set_keep_above (true);
#endif
set_position (WIN_POS_CENTER);
get_vbox()->set_spacing (6);

View File

@ -129,8 +129,6 @@ Splash::pop_front ()
if (get_window()) {
show ();
}
#else
set_keep_above (true);
#endif
}

View File

@ -73,7 +73,6 @@ ArdourStartup::ArdourStartup ()
, monitoring_page_index (-1)
, final_page_index (-1)
{
set_keep_above (true);
set_position (WIN_POS_CENTER);
set_border_width (12);