From d95de393390f7f8ee4c13e491b4e4d2555db535a Mon Sep 17 00:00:00 2001 From: John Emmas Date: Fri, 11 Apr 2014 13:03:48 +0100 Subject: Make sure we use the correct style of filepath separator on Windows ('libs/ardour/file_source.cc' still to be investigated) --- gtk2_ardour/missing_file_dialog.cc | 4 ++-- gtk2_ardour/search_path_option.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/missing_file_dialog.cc b/gtk2_ardour/missing_file_dialog.cc index 37868d5572..25f443d198 100644 --- a/gtk2_ardour/missing_file_dialog.cc +++ b/gtk2_ardour/missing_file_dialog.cc @@ -133,7 +133,7 @@ MissingFileDialog::add_chosen () break; } - split (str, dirs, ':'); + split (str, dirs, G_DIR_SEPARATOR); newdir = chooser.get_filename (); @@ -144,7 +144,7 @@ MissingFileDialog::add_chosen () } if (!str.empty()) { - str += ':'; + str += G_DIR_SEPARATOR; } str += newdir; diff --git a/gtk2_ardour/search_path_option.cc b/gtk2_ardour/search_path_option.cc index 8a5d99a375..1060e05b3f 100644 --- a/gtk2_ardour/search_path_option.cc +++ b/gtk2_ardour/search_path_option.cc @@ -103,7 +103,7 @@ SearchPathOption::set_state_from_config () clear (); path_box.pack_start (session_label); - split (str, dirs, ':'); + split (str, dirs, G_DIR_SEPARATOR); for (vector::iterator d = dirs.begin(); d != dirs.end(); ++d) { add_path (*d); @@ -118,7 +118,7 @@ SearchPathOption::changed () for (list::iterator p = paths.begin(); p != paths.end(); ++p) { if (!str.empty()) { - str += ':'; + str += G_DIR_SEPARATOR; } str += (*p)->entry.get_text (); } -- cgit v1.2.3