summaryrefslogtreecommitdiffstats
path: root/src/io/resource.cpp
diff options
context:
space:
mode:
authorValentin Ionita <valentin.ionita1201@gmail.com>2019-08-19 18:38:08 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-08-19 18:38:08 +0000
commitdaf25233fe9b7713f0b5c3c6f1b42b3fac8abb1c (patch)
tree2143be1f81e30ef55be7a548bebe6734c3533248 /src/io/resource.cpp
parentreduce usage of desktop coordinates (#341) (diff)
downloadinkscape-daf25233fe9b7713f0b5c3c6f1b42b3fac8abb1c.tar.gz
inkscape-daf25233fe9b7713f0b5c3c6f1b42b3fac8abb1c.zip
Add paint server dialog. Currently handles patterns and hatches. GSOC 2019.
Diffstat (limited to 'src/io/resource.cpp')
-rw-r--r--src/io/resource.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/io/resource.cpp b/src/io/resource.cpp
index 9f0f0a4ae..a57d188e7 100644
--- a/src/io/resource.cpp
+++ b/src/io/resource.cpp
@@ -47,13 +47,12 @@ gchar *_get_path(Domain domain, Type type, char const *filename)
case EXTENSIONS: temp = INKSCAPE_EXTENSIONDIR; break;
case FILTERS: temp = INKSCAPE_FILTERDIR; break;
case FONTS: temp = INKSCAPE_FONTSDIR; break;
- case GRADIENTS: temp = INKSCAPE_GRADIENTSDIR; break;
case ICONS: temp = INKSCAPE_ICONSDIR; break;
case KEYS: temp = INKSCAPE_KEYSDIR; break;
case MARKERS: temp = INKSCAPE_MARKERSDIR; break;
case NONE: g_assert_not_reached(); break;
+ case PAINT: temp = INKSCAPE_PAINTDIR; break;
case PALETTES: temp = INKSCAPE_PALETTESDIR; break;
- case PATTERNS: temp = INKSCAPE_PATTERNSDIR; break;
case SCREENS: temp = INKSCAPE_SCREENSDIR; break;
case SYMBOLS: temp = INKSCAPE_SYMBOLSDIR; break;
case TEMPLATES: temp = INKSCAPE_TEMPLATESDIR; break;
@@ -68,9 +67,8 @@ gchar *_get_path(Domain domain, Type type, char const *filename)
case CREATE: {
gchar const* temp = nullptr;
switch (type) {
- case GRADIENTS: temp = CREATE_GRADIENTSDIR; break;
+ case PAINT: temp = CREATE_PAINTDIR; break;
case PALETTES: temp = CREATE_PALETTESDIR; break;
- case PATTERNS: temp = CREATE_PATTERNSDIR; break;
default: temp = "";
}
path = g_strdup(temp);
@@ -84,13 +82,12 @@ gchar *_get_path(Domain domain, Type type, char const *filename)
case EXTENSIONS: name = "extensions"; break;
case FILTERS: name = "filters"; break;
case FONTS: name = "fonts"; break;
- case GRADIENTS: name = "gradients"; break;
case ICONS: name = "icons"; break;
case KEYS: name = "keys"; break;
case MARKERS: name = "markers"; break;
case NONE: name = ""; break;
+ case PAINT: name = "paint"; break;
case PALETTES: name = "palettes"; break;
- case PATTERNS: name = "patterns"; break;
case SYMBOLS: name = "symbols"; break;
case TEMPLATES: name = "templates"; break;
case THEMES: name = "themes"; break;
@@ -430,8 +427,8 @@ char *profile_path(const char *filename)
int problem = errno;
g_warning("Unable to create profile directory (%s) (%d)", g_strerror(problem), problem);
} else {
- gchar const *userDirs[] = { "keys", "templates", "icons", "extensions", "ui",
- "symbols", "themes", "palettes", nullptr };
+ gchar const *userDirs[] = { "keys", "templates", "icons", "extensions", "ui",
+ "symbols", "paint", "themes", "palettes", nullptr };
for (gchar const** name = userDirs; *name; ++name) {
gchar *dir = g_build_filename(prefdir, *name, NULL);
g_mkdir_with_parents(dir, mode);