X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fmissing_file_dialog.cc;h=8f171947b4e3f7c07a03bcfc1884b391aa00f211;hb=5fef65538040fbac1b9edd1847a269aa925a49c9;hp=b1e2081a1dace00aa27ab43a1efed747ca381da9;hpb=6a436fd826d1c9d88b60287696cc0836ccce35aa;p=ardour.git diff --git a/gtk2_ardour/missing_file_dialog.cc b/gtk2_ardour/missing_file_dialog.cc index b1e2081a1d..8f171947b4 100644 --- a/gtk2_ardour/missing_file_dialog.cc +++ b/gtk2_ardour/missing_file_dialog.cc @@ -26,17 +26,13 @@ #include "missing_file_dialog.h" #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace Gtk; using namespace std; using namespace ARDOUR; using namespace PBD; MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataType type) - : ArdourDialog (_("Missing File!"), true, false) + : ArdourDialog (_("Missing File"), true, false) , filetype (type) , chooser (_("Select a folder to search"), FILE_CHOOSER_ACTION_SELECT_FOLDER) , use_chosen (_("Add chosen folder to search path, and try again")) @@ -70,7 +66,7 @@ MissingFileDialog::MissingFileDialog (Session* s, const std::string& path, DataT oss << *i << endl; } - msg.set_justify (JUSTIFY_CENTER); + msg.set_justify (JUSTIFY_LEFT); msg.set_markup (string_compose (_("%1 cannot find the %2 file\n\n%3\n\nin any of these folders:\n\n\ %4\n\n"), PROGRAM_NAME, typestr, Glib::Markup::escape_text(path), Glib::Markup::escape_text (oss.str()))); @@ -137,7 +133,7 @@ MissingFileDialog::add_chosen () break; } - split (str, dirs, ':'); + split (str, dirs, G_SEARCHPATH_SEPARATOR); newdir = chooser.get_filename (); @@ -148,7 +144,7 @@ MissingFileDialog::add_chosen () } if (!str.empty()) { - str += ':'; + str += G_SEARCHPATH_SEPARATOR; } str += newdir;