diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-14 23:31:24 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-14 23:44:01 +0100 |
commit | 2b55d6dce3ded525731a6825bed658bca344bd28 (patch) | |
tree | 560e377bef5328f8b3e4cd73a172c5c7451913d1 /gtk2_ardour/ardour_ui_engine.cc | |
parent | 901bf1ab80d7b7a74f7e703c205a34c6528f4c28 (diff) |
First batch of MessageDialog replacements
Diffstat (limited to 'gtk2_ardour/ardour_ui_engine.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_engine.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk2_ardour/ardour_ui_engine.cc b/gtk2_ardour/ardour_ui_engine.cc index 8a0e115c80..5d3d06b2cc 100644 --- a/gtk2_ardour/ardour_ui_engine.cc +++ b/gtk2_ardour/ardour_ui_engine.cc @@ -40,6 +40,7 @@ #include "ardour/audioengine.h" +#include "ardour_message.h" #include "ardour_ui.h" #include "engine_dialog.h" #include "gui_thread.h" @@ -56,11 +57,11 @@ using namespace std; void ARDOUR_UI::audioengine_became_silent () { - MessageDialog msg (string_compose (_("This is a free/demo copy of %1. It has just switched to silent mode."), PROGRAM_NAME), - true, - Gtk::MESSAGE_WARNING, - Gtk::BUTTONS_NONE, - true); + ArdourMessageDialog msg (string_compose (_("This is a free/demo copy of %1. It has just switched to silent mode."), PROGRAM_NAME), + true, + Gtk::MESSAGE_WARNING, + Gtk::BUTTONS_NONE, + true); msg.set_title (string_compose (_("%1 is now silent"), PROGRAM_NAME)); @@ -123,7 +124,7 @@ void ARDOUR_UI::halt_on_xrun_message () { cerr << "HALT on xrun\n"; - MessageDialog msg (_main_window, _("Recording was stopped because your system could not keep up.")); + ArdourMessageDialog msg (_main_window, _("Recording was stopped because your system could not keep up.")); msg.run (); } @@ -149,11 +150,10 @@ bool ARDOUR_UI::check_audioengine (Gtk::Window& parent) { if (!AudioEngine::instance()->running()) { - MessageDialog msg (parent, string_compose ( - _("%1 is not connected to any audio backend.\n" - "You cannot open or close sessions in this condition"), - PROGRAM_NAME)); - pop_back_splash (msg); + ArdourMessageDialog msg (parent, string_compose ( + _("%1 is not connected to any audio backend.\n" + "You cannot open or close sessions in this condition"), + PROGRAM_NAME)); msg.run (); return false; } |