diff options
Diffstat (limited to 'src/color-profile.cpp')
| -rw-r--r-- | src/color-profile.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp index fbfa8efb1..2aec6c2f0 100644 --- a/src/color-profile.cpp +++ b/src/color-profile.cpp @@ -562,7 +562,7 @@ Glib::ustring Inkscape::get_path_for_profile(Glib::ustring const& name) return result; } -static void findThings() { +std::list<gchar *> ColorProfile::getProfileDirs() { std::list<gchar *> sources; gchar* base = profile_path("XXX"); @@ -584,6 +584,12 @@ static void findThings() { sources.push_back(g_build_filename(dataDirs[i], "color", "icc", NULL)); } + return sources; +} + +static void findThings() { + std::list<gchar *> sources = ColorProfile::getProfileDirs(); + while (!sources.empty()) { gchar *dirname = sources.front(); if ( g_file_test( dirname, G_FILE_TEST_EXISTS ) && g_file_test( dirname, G_FILE_TEST_IS_DIR ) ) { |
