-void
-ARDOUR_UI::backend_audio_error (bool we_set_params, Gtk::Window* toplevel)
-{
- string title;
- if (we_set_params) {
- title = string_compose (_("%1 could not start JACK"), PROGRAM_NAME);
- } else {
- title = string_compose (_("%1 could not connect to JACK."), PROGRAM_NAME);
- }
-
- MessageDialog win (title,
- false,
- Gtk::MESSAGE_INFO,
- Gtk::BUTTONS_NONE);
-
- if (we_set_params) {
- win.set_secondary_text(_("There are several possible reasons:\n\
-\n\
-1) You requested audio parameters that are not supported..\n\
-2) JACK is running as another user.\n\
-\n\
-Please consider the possibilities, and perhaps try different parameters."));
- } else {
- win.set_secondary_text(_("There are several possible reasons:\n\
-\n\
-1) JACK is not running.\n\
-2) JACK is running as another user, perhaps root.\n\
-3) There is already another client called \"ardour\".\n\
-\n\
-Please consider the possibilities, and perhaps (re)start JACK."));
- }
-
- if (toplevel) {
- win.set_transient_for (*toplevel);
- }
-
- if (we_set_params) {
- win.add_button (Stock::OK, RESPONSE_CLOSE);
- } else {
- win.add_button (Stock::QUIT, RESPONSE_CLOSE);
- }
-
- win.set_default_response (RESPONSE_CLOSE);
-
- win.show_all ();
- win.set_position (Gtk::WIN_POS_CENTER);
- pop_back_splash (win);
-
- /* we just don't care about the result, but we want to block */
-
- win.run ();
-}
-