diff options
| author | Aubanel Monnier <aubanel@gmail.com> | 2008-03-19 15:40:00 +0000 |
|---|---|---|
| committer | o__b <o__b@users.sourceforge.net> | 2008-03-19 15:40:00 +0000 |
| commit | e65a88bdb1ff93f1f2ba8e07a3d17e970670677f (patch) | |
| tree | 14033a41c5be8a7c7bac829ca45e0572f8900bc7 /src/prefs-utils.h | |
| parent | Add option to treat grups as single objects when converting to guides. (diff) | |
| download | inkscape-e65a88bdb1ff93f1f2ba8e07a3d17e970670677f.tar.gz inkscape-e65a88bdb1ff93f1f2ba8e07a3d17e970670677f.zip | |
More woke on calligraaphic presets:
Added a No Preset entry
Made save button and save functionality
Changing settings swithces back the preset combo to No Preset
Internals:
added several functions in pref-utils: add child-pref, get list of children, number of children
added a function to retrieve the model from egeActioSelectOne
Todos:
when a profile is selected, the save button should be a delete button that deletes the current profile
find a way to (re)name new profiles
find a way to get unique ids (are ids mandatory in preferences anyway ?)
(bzr r5125)
Diffstat (limited to 'src/prefs-utils.h')
| -rw-r--r-- | src/prefs-utils.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/prefs-utils.h b/src/prefs-utils.h index bd79b5f7c..b60a674df 100644 --- a/src/prefs-utils.h +++ b/src/prefs-utils.h @@ -13,8 +13,14 @@ #define SEEN_PREFS_UTILS_H #include <glib/gtypes.h> +#include <glib/gslist.h> bool pref_path_exists(gchar const *path); +unsigned int pref_path_number_of_children(gchar const *path); +gchar * create_pref(gchar const *father_path, gchar const *child); +bool get_pref_children(gchar const *father_path, GSList ** children); +gchar * get_pref_nth_child(gchar const *father_path, unsigned int n); + void prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value); long long int prefs_get_int_attribute(gchar const *path, gchar const *attr, long long int def); long long int prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, long long int def, long long int min, long long int max); |
