From 4da0f782dab1c1706be555e8de68552ab5e20a31 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 25 Oct 2006 05:33:24 +0000 Subject: switch pref/repr utility methods to using long long ints; with out it, we cannot even store an rgba32 color in an attribute\! (bzr r1860) --- src/prefs-utils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/prefs-utils.cpp') diff --git a/src/prefs-utils.cpp b/src/prefs-utils.cpp index a0851a354..e365966bd 100644 --- a/src/prefs-utils.cpp +++ b/src/prefs-utils.cpp @@ -19,7 +19,7 @@ void -prefs_set_int_attribute(gchar const *path, gchar const *attr, gint value) +prefs_set_int_attribute(gchar const *path, gchar const *attr, long long int value) { Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); if (repr) { @@ -27,8 +27,8 @@ 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) +long long int +prefs_get_int_attribute(gchar const *path, gchar const *attr, long long int def) { Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); if (repr) { @@ -41,12 +41,12 @@ prefs_get_int_attribute(gchar const *path, gchar const *attr, gint def) /** \brief Retrieves an int attribute guarding against screwed-up data; if the value is beyond limits, default is returned */ -gint -prefs_get_int_attribute_limited(gchar const *path, gchar const *attr, gint def, gint min, gint max) +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) { Inkscape::XML::Node *repr = inkscape_get_repr(INKSCAPE, path); if (repr) { - gint const v = sp_repr_get_int_attribute(repr, attr, def); + long long int const v = sp_repr_get_int_attribute(repr, attr, def); if (v >= min && v <= max) { return v; } else { -- cgit v1.2.3