diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-11-27 09:58:19 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-11-27 09:58:19 +0000 |
| commit | ed8347592a5a7ec2ce61af61ee9baf133b7ae10f (patch) | |
| tree | b93720405639ddc34fe178015925dbf89a1ec811 /src/color-profile.cpp | |
| parent | please don't forget to update Makefile_insert (diff) | |
| download | inkscape-ed8347592a5a7ec2ce61af61ee9baf133b7ae10f.tar.gz inkscape-ed8347592a5a7ec2ce61af61ee9baf133b7ae10f.zip | |
List color profile search locations in preference tooltip
(bzr r6908)
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 ) ) { |
