summaryrefslogtreecommitdiffstats
path: root/src/preferences.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-12-02 18:39:33 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-12-02 18:39:33 +0000
commit09e2f7b62d13537a0f006fc9953c533802fd9c12 (patch)
tree78c1a72538f0e60e38c3ca1845a909fcad53f394 /src/preferences.cpp
parentadding fussion improvements (diff)
parentExtensions. Fix for Bug #1192746 (e key does not start export on firefox [Jes... (diff)
downloadinkscape-09e2f7b62d13537a0f006fc9953c533802fd9c12.tar.gz
inkscape-09e2f7b62d13537a0f006fc9953c533802fd9c12.zip
update to trunk
(bzr r13708.1.4)
Diffstat (limited to 'src/preferences.cpp')
-rw-r--r--src/preferences.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp
index d0c3783b5..e5a5fe7f0 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -91,11 +91,13 @@ Preferences::Preferences() :
_hasError(false)
{
// profile_path essentailly returns the argument prefixed by the profile directory.
- gchar *path = profile_path(NULL);
+ // \TODO this is kinda hackish, but the alternative (strrchr) is worse
+
+ gchar *path = Inkscape::Application::profile_path(NULL);
_prefs_dir = path;
g_free(path);
- path = profile_path(_prefs_basename.c_str());
+ path = Inkscape::Application::profile_path(_prefs_basename.c_str());
_prefs_filename = path;
g_free(path);
@@ -155,7 +157,7 @@ void Preferences::_load()
// create some subdirectories for user stuff
char const *user_dirs[] = {"keys", "templates", "icons", "extensions", "palettes", NULL};
for (int i=0; user_dirs[i]; ++i) {
- char *dir = profile_path(user_dirs[i]);
+ char *dir = Inkscape::Application::profile_path(user_dirs[i]);
g_mkdir(dir, 0755);
g_free(dir);
}