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_startup.cc | |
parent | 901bf1ab80d7b7a74f7e703c205a34c6528f4c28 (diff) |
First batch of MessageDialog replacements
Diffstat (limited to 'gtk2_ardour/ardour_ui_startup.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_startup.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/gtk2_ardour/ardour_ui_startup.cc b/gtk2_ardour/ardour_ui_startup.cc index 8327f5be06..e55bf6e0aa 100644 --- a/gtk2_ardour/ardour_ui_startup.cc +++ b/gtk2_ardour/ardour_ui_startup.cc @@ -61,6 +61,7 @@ #include "gtkmm2ext/application.h" #include "ambiguous_file_dialog.h" +#include "ardour_message.h" #include "ardour_ui.h" #include "debug.h" #include "engine_dialog.h" @@ -168,12 +169,12 @@ ARDOUR_UI::session_format_mismatch (std::string xml_path, std::string backup_pat const char* start_mono = "<tt>"; const char* end_mono = "</tt>"; - MessageDialog msg (string_compose (_("%4This is a session from an older version of %3%5\n\n" - "%3 has copied the old session file\n\n%6%1%7\n\nto\n\n%6%2%7\n\n" - "From now on, use the backup copy with older versions of %3"), - xml_path, backup_path, PROGRAM_NAME, - start_big, end_big, - start_mono, end_mono), true); + ArdourMessageDialog msg (string_compose (_("%4This is a session from an older version of %3%5\n\n" + "%3 has copied the old session file\n\n%6%1%7\n\nto\n\n%6%2%7\n\n" + "From now on, use the backup copy with older versions of %3"), + xml_path, backup_path, PROGRAM_NAME, + start_big, end_big, + start_mono, end_mono), true); msg.run (); } @@ -215,7 +216,7 @@ audio may be played at the wrong sample rate.\n"), desired, PROGRAM_NAME, actual void ARDOUR_UI::sr_mismatch_message (samplecnt_t desired, samplecnt_t actual) { - MessageDialog msg (string_compose (_("\ + ArdourMessageDialog msg (string_compose (_("\ This session was created with a sample rate of %1 Hz, but\n\ %2 is currently running at %3 Hz.\n\ Audio will be recorded and played at the wrong sample rate.\n\ @@ -617,7 +618,7 @@ ARDOUR_UI::check_memory_locking () if (ram == 0 || ((double) limits.rlim_cur / ram) < 0.75) { - MessageDialog msg ( + ArdourMessageDialog msg ( string_compose ( _("WARNING: Your system has a limit for maximum amount of locked memory. " "This might cause %1 to run out of memory before your system " @@ -643,8 +644,6 @@ ARDOUR_UI::check_memory_locking () vbox->show(); hbox.show (); - pop_back_splash (msg); - msg.run (); if (cb.get_active()) { |