From cfb64e0ced9d5a058d934e3c55aaab5a9242852d Mon Sep 17 00:00:00 2001
From: Christopher James Lahey <clahey@helixcode.com>
Date: Sun, 5 Mar 2000 00:27:26 +0000
Subject: 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
---
 e-util/e-xml-utils.c | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'e-util/e-xml-utils.c')

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);
+}
-- 
cgit