summaryrefslogtreecommitdiffstats
path: root/src/prefs-utils.cpp
diff options
context:
space:
mode:
authorAubanel Monnier <aubanel@gmail.com>2008-03-14 14:50:57 +0000
committero__b <o__b@users.sourceforge.net>2008-03-14 14:50:57 +0000
commitcd0f01d3a3fdf7d10c6620366ea17525cff830e1 (patch)
treee50efbd3de0c298d3a4c54746a9214b92017b4c0 /src/prefs-utils.cpp
parentUnused params (diff)
downloadinkscape-cd0f01d3a3fdf7d10c6620366ea17525cff830e1.tar.gz
inkscape-cd0f01d3a3fdf7d10c6620366ea17525cff830e1.zip
calligraphic profiles are now read from the preferences
TODO1: Fix problem on init (Should react on the set signal instead of change but cannot find if such a signal exists) TODO2: Find a way to display svg icons in the combo box and add a property icon_id in configuration (bzr r5088)
Diffstat (limited to 'src/prefs-utils.cpp')
-rw-r--r--src/prefs-utils.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/prefs-utils.cpp b/src/prefs-utils.cpp
index 14a37ee4b..5e01b1903 100644
--- a/src/prefs-utils.cpp
+++ b/src/prefs-utils.cpp
@@ -17,7 +17,13 @@
#include "inkscape.h"
#include "xml/repr.h"
-
+/**
+\brief Checks if the path exists in the preference file
+*/
+bool pref_path_exists(gchar const *path){
+ Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path);
+ return (repr != NULL);
+}
void
prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value)
{