diff options
| author | Joshua L. Blocher <verbalshadow@gmail.com> | 2006-04-28 04:05:36 +0000 |
|---|---|---|
| committer | verbalshadow <verbalshadow@users.sourceforge.net> | 2006-04-28 04:05:36 +0000 |
| commit | b4223676db03ef0c5196ea0e2e9cb42d4dfd686e (patch) | |
| tree | ce04de673440e5ffc1955b48dd42768023c33064 /src/io/resource.cpp | |
| parent | Added CREATE v0.1 support for gradients/swatches/patterns (diff) | |
| download | inkscape-b4223676db03ef0c5196ea0e2e9cb42d4dfd686e.tar.gz inkscape-b4223676db03ef0c5196ea0e2e9cb42d4dfd686e.zip | |
Added CREATE v0.1 support for gradients/swatches/patterns
(bzr r601)
Diffstat (limited to '')
| -rw-r--r-- | src/io/resource.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/io/resource.cpp b/src/io/resource.cpp index ae9097868..b4dca3233 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -53,6 +53,16 @@ Util::ptr_shared<char> 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) { |
