aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-05 08:27:26 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-05 08:27:26 +0800
commitcfb64e0ced9d5a058d934e3c55aaab5a9242852d (patch)
treea4e5628243ac142e148665a892df6e5b642dd662 /e-util
parent391ccf456131d38de59406f0f8e6b2bece809073 (diff)
downloadgsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.tar
gsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.tar.gz
gsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.tar.bz2
gsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.tar.lz
gsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.tar.xz
gsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.tar.zst
gsoc2013-evolution-cfb64e0ced9d5a058d934e3c55aaab5a9242852d.zip
Added e_xml_set_integer_prop_by_name.
2000-03-04 Christopher James Lahey <clahey@helixcode.com> * e-util/e-xml-utils.c, e-util/e-xml-utils.h: Added e_xml_set_integer_prop_by_name. svn path=/trunk/; revision=2051
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-xml-utils.c8
-rw-r--r--e-util/e-xml-utils.c-568268
-rw-r--r--e-util/e-xml-utils.h1
-rw-r--r--e-util/e-xml-utils.h-825481
4 files changed, 18 insertions, 0 deletions
diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c
index e6f361392b..7eb54105d1 100644
--- a/e-util/e-xml-utils.c
+++ b/e-util/e-xml-utils.c
@@ -44,3 +44,11 @@ e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name)
else
return 0;
}
+
+void
+e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value)
+{
+ xmlChar *value = g_strdup_printf("%d", value);
+ xmlSetProp(parent, prop_name, value);
+ g_free (value);
+}
diff --git a/e-util/e-xml-utils.c-56826 b/e-util/e-xml-utils.c-56826
index e6f361392b..7eb54105d1 100644
--- a/e-util/e-xml-utils.c-56826
+++ b/e-util/e-xml-utils.c-56826
@@ -44,3 +44,11 @@ e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name)
else
return 0;
}
+
+void
+e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value)
+{
+ xmlChar *value = g_strdup_printf("%d", value);
+ xmlSetProp(parent, prop_name, value);
+ g_free (value);
+}
diff --git a/e-util/e-xml-utils.h b/e-util/e-xml-utils.h
index c9b0ff2b39..7b39ddac5f 100644
--- a/e-util/e-xml-utils.h
+++ b/e-util/e-xml-utils.h
@@ -27,5 +27,6 @@
#include <gnome-xml/tree.h>
xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name);
int e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name);
+void e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value);
#endif /* __E_XML_UTILS__ */
diff --git a/e-util/e-xml-utils.h-82548 b/e-util/e-xml-utils.h-82548
index c9b0ff2b39..7b39ddac5f 100644
--- a/e-util/e-xml-utils.h-82548
+++ b/e-util/e-xml-utils.h-82548
@@ -27,5 +27,6 @@
#include <gnome-xml/tree.h>
xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name);
int e_xml_get_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name);
+void e_xml_set_integer_prop_by_name(xmlNode *parent, xmlChar *prop_name, int value);
#endif /* __E_XML_UTILS__ */