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:

committed by
Chris Lahey

parent
391ccf4561
commit
cfb64e0ced
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user