diff options
| author | Martin Owens <doctormo@gmail.com> | 2017-07-02 14:47:03 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2017-07-02 14:47:03 +0000 |
| commit | 7dc5626af3eb924fa381c46491cd49178a78cd73 (patch) | |
| tree | e50a3b98ce1393b7a06efbd11425f8c458b0cbbb /src/extension/dependency.cpp | |
| parent | pyc files are generated when testing modules, ignore them (diff) | |
| download | inkscape-7dc5626af3eb924fa381c46491cd49178a78cd73.tar.gz inkscape-7dc5626af3eb924fa381c46491cd49178a78cd73.zip | |
Move directory scanners to new get_filenames(...) calls
Diffstat (limited to 'src/extension/dependency.cpp')
| -rw-r--r-- | src/extension/dependency.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/extension/dependency.cpp b/src/extension/dependency.cpp index 837520381..827475011 100644 --- a/src/extension/dependency.cpp +++ b/src/extension/dependency.cpp @@ -18,6 +18,7 @@ #include "dependency.h" #include "db.h" #include "extension.h" +#include "io/resource.h" namespace Inkscape { namespace Extension { @@ -151,12 +152,11 @@ bool Dependency::check (void) const Glib::ustring location(_string); switch (_location) { case LOCATION_EXTENSIONS: { - for (unsigned int i=0; i<Inkscape::Extension::Extension::search_path.size(); i++) { - std::string temploc = Glib::build_filename(Inkscape::Extension::Extension::search_path[i], location); - if (Glib::file_test(temploc, filetest)) { - location = temploc; - break; - } + using namespace Inkscape::IO::Resource; + Glib::ustring temploc = get_filename(EXTENSIONS, location.c_str()); + if(Glib::file_test(temploc, filetest)) { + location = temploc; + break; } } /* PASS THROUGH!!! */ case LOCATION_ABSOLUTE: { |
