diff options
Diffstat (limited to 'e-util/e-xml-utils.c')
-rw-r--r-- | e-util/e-xml-utils.c | 8 |
1 files changed, 8 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); +} |