diff options
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/about.cc | 6 | ||||
-rw-r--r-- | gtk2_ardour/keyboard.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/missing_file_dialog.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/mixer_actor.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/step_entry.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/transcode_ffmpeg.cc | 8 | ||||
-rw-r--r-- | gtk2_ardour/utils.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/video_server_dialog.cc | 6 | ||||
-rw-r--r-- | gtk2_ardour/video_timeline.cc | 2 |
9 files changed, 7 insertions, 35 deletions
diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index b2dac67379..b656c29ad8 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -40,10 +40,6 @@ #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace Gtk; using namespace Gdk; using namespace std; @@ -564,7 +560,7 @@ About::About () std::string splash_file; - SearchPath spath(ardour_data_search_path()); + Searchpath spath(ardour_data_search_path()); if (find_file_in_search_path (spath, "splash.png", splash_file)) { set_logo (Gdk::Pixbuf::create_from_file (splash_file)); diff --git a/gtk2_ardour/keyboard.cc b/gtk2_ardour/keyboard.cc index 75a96ec98b..98ffab1160 100644 --- a/gtk2_ardour/keyboard.cc +++ b/gtk2_ardour/keyboard.cc @@ -28,10 +28,6 @@ #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace std; using namespace Gtk; using namespace PBD; diff --git a/gtk2_ardour/missing_file_dialog.cc b/gtk2_ardour/missing_file_dialog.cc index b1e2081a1d..37868d5572 100644 --- a/gtk2_ardour/missing_file_dialog.cc +++ b/gtk2_ardour/missing_file_dialog.cc @@ -26,10 +26,6 @@ #include "missing_file_dialog.h" #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace Gtk; using namespace std; using namespace ARDOUR; diff --git a/gtk2_ardour/mixer_actor.cc b/gtk2_ardour/mixer_actor.cc index 8a90a3a1dd..d7a1149a4b 100644 --- a/gtk2_ardour/mixer_actor.cc +++ b/gtk2_ardour/mixer_actor.cc @@ -35,10 +35,6 @@ #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace ARDOUR; using namespace Gtk; using namespace PBD; diff --git a/gtk2_ardour/step_entry.cc b/gtk2_ardour/step_entry.cc index 27ec3b4059..fd53fd55ff 100644 --- a/gtk2_ardour/step_entry.cc +++ b/gtk2_ardour/step_entry.cc @@ -36,10 +36,6 @@ #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace std; using namespace Gtk; using namespace Glib; diff --git a/gtk2_ardour/transcode_ffmpeg.cc b/gtk2_ardour/transcode_ffmpeg.cc index 0a7bf64ecd..08060b6a51 100644 --- a/gtk2_ardour/transcode_ffmpeg.cc +++ b/gtk2_ardour/transcode_ffmpeg.cc @@ -32,10 +32,6 @@ #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace PBD; using namespace VideoUtils; @@ -55,7 +51,7 @@ TranscodeFfmpeg::TranscodeFfmpeg (std::string f) #endif std::string ff_file_path; - if (find_file_in_search_path (SearchPath(Glib::getenv("PATH")), X_("ffmpeg_harvid"), ff_file_path)) { ffmpeg_exe = ff_file_path; } + if (find_file_in_search_path (Searchpath(Glib::getenv("PATH")), X_("ffmpeg_harvid"), ff_file_path)) { ffmpeg_exe = ff_file_path; } else if (Glib::file_test(X_("C:\\Program Files\\harvid\\ffmpeg.exe"), Glib::FILE_TEST_EXISTS)) { ffmpeg_exe = X_("C:\\Program Files\\ffmpeg\\ffmpeg.exe"); } @@ -63,7 +59,7 @@ TranscodeFfmpeg::TranscodeFfmpeg (std::string f) ffmpeg_exe = X_("C:\\Program Files\\ffmpeg\\ffmpeg.exe"); } - if (find_file_in_search_path (SearchPath(Glib::getenv("PATH")), X_("ffprobe_harvid"), ff_file_path)) { ffprobe_exe = ff_file_path; } + if (find_file_in_search_path (Searchpath(Glib::getenv("PATH")), X_("ffprobe_harvid"), ff_file_path)) { ffprobe_exe = ff_file_path; } else if (Glib::file_test(X_("C:\\Program Files\\harvid\\ffprobe.exe"), Glib::FILE_TEST_EXISTS)) { ffprobe_exe = X_("C:\\Program Files\\ffmpeg\\ffprobe.exe"); } diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 557c86c3f6..93e4ee98c7 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -581,7 +581,7 @@ get_xpm (std::string name) { if (!xpm_map[name]) { - SearchPath spath(ARDOUR::ardour_data_search_path()); + Searchpath spath(ARDOUR::ardour_data_search_path()); spath.add_subdirectory_to_paths("pixmaps"); @@ -607,7 +607,7 @@ get_icon_path (const char* cname) string name = cname; name += X_(".png"); - SearchPath spath(ARDOUR::ardour_data_search_path()); + Searchpath spath(ARDOUR::ardour_data_search_path()); spath.add_subdirectory_to_paths("icons"); diff --git a/gtk2_ardour/video_server_dialog.cc b/gtk2_ardour/video_server_dialog.cc index 7948908b87..eefd87a067 100644 --- a/gtk2_ardour/video_server_dialog.cc +++ b/gtk2_ardour/video_server_dialog.cc @@ -37,10 +37,6 @@ #include "utils_videotl.h" #include "i18n.h" -#ifdef SearchPath -#undef SearchPath -#endif - using namespace Gtk; using namespace std; using namespace PBD; @@ -88,7 +84,7 @@ VideoServerDialog::VideoServerDialog (Session* s) listenaddr_combo.set_active(0); std::string icsd_file_path; - if (find_file_in_search_path (PBD::SearchPath(Glib::getenv("PATH")), X_("harvid"), icsd_file_path)) { + if (find_file_in_search_path (PBD::Searchpath(Glib::getenv("PATH")), X_("harvid"), icsd_file_path)) { path_entry.set_text(icsd_file_path); } else if (Glib::file_test(X_("C:\\Program Files\\harvid\\harvid.exe"), Glib::FILE_TEST_EXISTS)) { diff --git a/gtk2_ardour/video_timeline.cc b/gtk2_ardour/video_timeline.cc index 75f6150691..bb7fc16723 100644 --- a/gtk2_ardour/video_timeline.cc +++ b/gtk2_ardour/video_timeline.cc @@ -719,7 +719,7 @@ VideoTimeLine::find_xjadeo () { std::string xjadeo_file_path; if (getenv("XJREMOTE")) { _xjadeo_bin = strdup(getenv("XJREMOTE")); // XXX TODO: free it?! - } else if (find_file_in_search_path (SearchPath(Glib::getenv("PATH")), X_("xjremote"), xjadeo_file_path)) { + } else if (find_file_in_search_path (Searchpath(Glib::getenv("PATH")), X_("xjremote"), xjadeo_file_path)) { _xjadeo_bin = xjadeo_file_path; } else if (Glib::file_test(X_("/Applications/Jadeo.app/Contents/MacOS/xjremote"), Glib::FILE_TEST_EXISTS|Glib::FILE_TEST_IS_EXECUTABLE)) { |