From cd0f01d3a3fdf7d10c6620366ea17525cff830e1 Mon Sep 17 00:00:00 2001 From: Aubanel Monnier Date: Fri, 14 Mar 2008 14:50:57 +0000 Subject: 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) --- src/prefs-utils.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/prefs-utils.cpp') 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) { -- cgit v1.2.3