X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fio%2Fresource.cpp;h=1f6f8459c60b4738bdc37fb2ff67958565fda3d7;hb=91c307b04acb17109e2811ed9f525217e03cea02;hp=ae9097868db4d52fce22048b585feb66336a67f3;hpb=4dee85c52b925eb503f189532bdd19168d730671;p=inkscape.git diff --git a/src/io/resource.cpp b/src/io/resource.cpp index ae9097868..1f6f8459c 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -16,6 +16,7 @@ #include "config.h" #endif +#include // g_assert() #include #include #include @@ -44,7 +45,6 @@ Util::ptr_shared get_path(Domain domain, Type type, char const *filename) case MARKERS: temp = INKSCAPE_MARKERSDIR; break; case PALETTES: temp = INKSCAPE_PALETTESDIR; break; case PATTERNS: temp = INKSCAPE_PATTERNSDIR; break; - case PLUGINS: temp = INKSCAPE_PLUGINDIR; break; case SCREENS: temp = INKSCAPE_SCREENSDIR; break; case TEMPLATES: temp = INKSCAPE_TEMPLATESDIR; break; case TUTORIALS: temp = INKSCAPE_TUTORIALSDIR; break; @@ -53,6 +53,16 @@ Util::ptr_shared get_path(Domain domain, Type type, char const *filename) } path = g_strdup(temp); } break; + case CREATE: { + gchar const* temp = 0; + switch (type) { + case GRADIENTS: temp = CREATE_GRADIENTSDIR; break; + case PALETTES: temp = CREATE_PALETTESDIR; break; + case PATTERNS: temp = CREATE_PATTERNSDIR; break; + default: g_assert_not_reached(); + } + path = g_strdup(temp); + } break; case USER: { char const *name=NULL; switch (type) { @@ -63,7 +73,6 @@ Util::ptr_shared get_path(Domain domain, Type type, char const *filename) case MARKERS: name = "markers"; break; case PALETTES: name = "palettes"; break; case PATTERNS: name = "patterns"; break; - case PLUGINS: name = "plugins"; break; case TEMPLATES: name = "templates"; break; default: return get_path(SYSTEM, type, filename); }