diff options
| author | MenTaLguY <mental@rydia.net> | 2006-01-16 02:36:01 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-01-16 02:36:01 +0000 |
| commit | 179fa413b047bede6e32109e2ce82437c5fb8d34 (patch) | |
| tree | a5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/prefs-utils.h | |
| download | inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip | |
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/prefs-utils.h')
| -rw-r--r-- | src/prefs-utils.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/prefs-utils.h b/src/prefs-utils.h new file mode 100644 index 000000000..3cd2998e5 --- /dev/null +++ b/src/prefs-utils.h @@ -0,0 +1,42 @@ +/* + * Utility functions for reading and setting preferences + * + * Authors: + * bulia byak <bulia@dr.com> + * + * Copyright (C) 2003 authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#ifndef SEEN_PREFS_UTILS_H +#define SEEN_PREFS_UTILS_H + +#include <glib/gtypes.h> + +void prefs_set_int_attribute(gchar const *path, gchar const *attr, gint value); +gint prefs_get_int_attribute(gchar const *path, gchar const *attr, gint def); +gint prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, gint def, gint min, gint max); + +void prefs_set_double_attribute(gchar const *path, gchar const *attr, double value); +double prefs_get_double_attribute(gchar const *path, gchar const *attr, double def); +double prefs_get_double_attribute_limited(gchar const *path, gchar const *attr, double def, double min, double max); + +gchar const *prefs_get_string_attribute(gchar const *path, gchar const *attr); +void prefs_set_string_attribute(gchar const *path, gchar const *attr, gchar const *value); + +void prefs_set_recent_file(const gchar * uri, const gchar * name); +const gchar ** prefs_get_recent_files(void); + +#endif /* !SEEN_PREFS_UTILS_H */ + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : |
