static void gal_view_minicard_save (GalView *view, const char *filename) { xmlDoc *doc; xmlNode *root; doc = xmlNewDoc((const unsigned char *)"1.0"); root = xmlNewNode (NULL, (const unsigned char *)"EMinicardViewState"); e_xml_set_double_prop_by_name (root, (const unsigned char *)"column_width", GAL_VIEW_MINICARD (view)->column_width); xmlDocSetRootElement(doc, root); e_xml_save_file (filename, doc); xmlFreeDoc(doc); }
/** * e_xmlhash_write: * @hash: The #EXmlHash to write. * * Writes the XML represented by @hash to the file originally passed * to e_xmlhash_new(). **/ void e_xmlhash_write (EXmlHash *hash) { xmlDoc *doc; g_return_if_fail (hash != NULL); doc = e_xml_from_hash ( hash->objects, E_XML_HASH_TYPE_OBJECT_UID, "xmlhash"); e_xml_save_file (hash->filename, doc); xmlFreeDoc (doc); }
static void view_minicard_save (GalView *view, const gchar *filename) { GalViewMinicard *view_minicard; xmlDoc *doc; xmlNode *root; view_minicard = GAL_VIEW_MINICARD (view); doc = xmlNewDoc ((guchar *) "1.0"); root = xmlNewNode (NULL, (guchar *) "EMinicardViewState"); e_xml_set_double_prop_by_name ( root, (guchar *) "column_width", view_minicard->column_width); xmlDocSetRootElement (doc, root); e_xml_save_file (filename, doc); xmlFreeDoc (doc); }