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
This commit is contained in:
Christopher James Lahey
2000-03-05 00:27:26 +00:00
committed by Chris Lahey
parent 391ccf4561
commit cfb64e0ced
5 changed files with 23 additions and 0 deletions

View File

@ -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);
}