add route dialog should always show up wherever the mouse is, not in its last location

This commit is contained in:
Paul Davis 2016-05-18 22:39:37 -04:00
parent 57000d7d5a
commit bd43428a65
2 changed files with 5 additions and 1 deletions

View File

@ -64,6 +64,7 @@ AddRouteDialog::AddRouteDialog ()
set_modal (true);
set_skip_taskbar_hint (true);
set_resizable (false);
set_position (WIN_POS_MOUSE);
name_template_entry.set_name (X_("AddRouteDialogNameTemplateEntry"));
// routes_spinner.set_name (X_("AddRouteDialogSpinner"));
@ -293,7 +294,7 @@ AddRouteDialog::track_type_chosen ()
route_group_combo.set_sensitive (true);
break;
case MixedTrack:
{
{
MessageDialog msg (_("Audio+MIDI tracks are intended for use <b>ONLY</b> with plugins that use both audio and MIDI input data\n\n"
"If you do not plan to use such a plugin, then use a normal audio or MIDI track instead."),
true, MESSAGE_INFO, BUTTONS_OK, true);

View File

@ -473,6 +473,9 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
WM::Manager::instance().register_window (&audio_port_matrix);
WM::Manager::instance().register_window (&midi_port_matrix);
/* do not retain position for add route dialog */
add_route_dialog.set_state_mask (WindowProxy::Size);
/* Trigger setting up the color scheme and loading the GTK RC file */
UIConfiguration::instance().load_rc_file (false);