aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-xml-utils.c-56826
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-xml-utils.c-56826')
-rw-r--r--e-util/e-xml-utils.c-568268
1 files changed, 8 insertions, 0 deletions
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);
+}