diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-09-04 06:05:23 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-09-04 06:05:23 +0000 |
commit | 62e1d706597587e33a29a1220d1b84375d03b371 (patch) | |
tree | f540709630c31ca8f07d61032ae7f3a07c1cf4b0 /gtk2_ardour | |
parent | 960218a9d3f8539a94389437fbc67510386aa814 (diff) |
Use PBD::find_file_in_search_path instead of PathScanner in ARDOUR_UI::install_actions to test for AniComp
git-svn-id: svn://localhost/ardour2/trunk@2395 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui_ed.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 41665cffbb..2a798793eb 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -23,7 +23,7 @@ is to cut down on the nasty compile times for both these classes. */ -#include <pbd/pathscanner.h> +#include <pbd/file_utils.h> #include <pbd/fpu.h> #include <glibmm/miscutils.h> @@ -112,15 +112,11 @@ ARDOUR_UI::install_actions () #ifdef WITH_CMT - PathScanner scanner; - vector<string*>* results = scanner (getenv ("PATH"), "AniComp", false, false); + sys::path anicomp_file_path; - if (results) { - if (!results->empty()) { - act = ActionManager::register_action (main_actions, X_("aniConnect"), _("Connect"), (mem_fun (*editor, &PublicEditor::connect_to_image_compositor))); - ActionManager::session_sensitive_actions.push_back (act); - } - delete results; + if (PBD::find_file_in_search_path (Glib::getenv("PATH"), "AniComp", anicomp_file_path)) { + act = ActionManager::register_action (main_actions, X_("aniConnect"), _("Connect"), (mem_fun (*editor, &PublicEditor::connect_to_image_compositor))); + ActionManager::session_sensitive_actions.push_back (act); } #endif |