X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fengine_dialog.cc;fp=gtk2_ardour%2Fengine_dialog.cc;h=a8209514c13bb685c5587d2ff04cc79a360eb9e4;hb=2b55d6dce3ded525731a6825bed658bca344bd28;hp=28c2ee5d262bb67352a7bec17db57f7267439c9f;hpb=901bf1ab80d7b7a74f7e703c205a34c6528f4c28;p=ardour.git diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 28c2ee5d26..a8209514c1 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -29,8 +29,6 @@ #include -#include - #include "pbd/error.h" #include "pbd/locale_guard.h" #include "pbd/xml++.h" @@ -57,6 +55,7 @@ #include "opts.h" #include "debug.h" +#include "ardour_message.h" #include "ardour_ui.h" #include "engine_dialog.h" #include "gui_thread.h" @@ -130,7 +129,7 @@ EngineControl::EngineControl () vector backends = ARDOUR::AudioEngine::instance()->available_backends(); if (backends.empty()) { - MessageDialog msg (string_compose (_("No audio/MIDI backends detected. %1 cannot run\n\n(This is a build/packaging/system error. It should never happen.)"), PROGRAM_NAME)); + ArdourMessageDialog msg (string_compose (_("No audio/MIDI backends detected. %1 cannot run\n\n(This is a build/packaging/system error. It should never happen.)"), PROGRAM_NAME)); msg.run (); throw failed_constructor (); } @@ -474,7 +473,7 @@ bool EngineControl::start_engine () { if (push_state_to_backend (true) != 0) { - MessageDialog msg (*this, ARDOUR::AudioEngine::instance()->get_last_backend_error()); + ArdourMessageDialog msg (*this, ARDOUR::AudioEngine::instance()->get_last_backend_error()); msg.run(); return false; } @@ -485,8 +484,7 @@ bool EngineControl::stop_engine (bool for_latency) { if (ARDOUR::AudioEngine::instance()->stop(for_latency)) { - MessageDialog msg(*this, - ARDOUR::AudioEngine::instance()->get_last_backend_error()); + ArdourMessageDialog msg(*this, ARDOUR::AudioEngine::instance()->get_last_backend_error()); msg.run(); return false; } @@ -759,13 +757,13 @@ EngineControl::enable_latency_tab () ARDOUR::AudioEngine::instance()->get_physical_inputs (type, inputs); if (!ARDOUR::AudioEngine::instance()->running()) { - MessageDialog msg (_("Failed to start or connect to audio-engine.\n\nLatency calibration requires a working audio interface.")); + ArdourMessageDialog msg (_("Failed to start or connect to audio-engine.\n\nLatency calibration requires a working audio interface.")); notebook.set_current_page (0); msg.run (); return; } else if (inputs.empty() || outputs.empty()) { - MessageDialog msg (_("Your selected audio configuration is playback- or capture-only.\n\nLatency calibration requires playback and capture")); + ArdourMessageDialog msg (_("Your selected audio configuration is playback- or capture-only.\n\nLatency calibration requires playback and capture")); notebook.set_current_page (0); msg.run (); return;