aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/gal-view-minicard.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-17 20:07:31 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-17 20:07:31 +0800
commiteea1c3e8d6351725a3879f2ef48c38bde07f1faa (patch)
treef44470c16c0edba9ce660adf4f43d8a9332cb803 /addressbook/gui/widgets/gal-view-minicard.c
parentafa42c2e1ce90b49561a9aa7cb75b692a2cdcd7c (diff)
downloadgsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.tar
gsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.tar.gz
gsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.tar.bz2
gsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.tar.lz
gsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.tar.xz
gsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.tar.zst
gsoc2013-evolution-eea1c3e8d6351725a3879f2ef48c38bde07f1faa.zip
gui/widgets/gal-view-minicard.c Use libedataserver's e_xml_parse_file()
2005-12-17 Tor Lillqvist <tml@novell.com> * gui/widgets/gal-view-minicard.c * printing/e-contact-print.c: Use libedataserver's e_xml_parse_file() and e_xml_save_file() instead of calling libxml functions directly, as they don't understand the GLib file name encoding (UTF-8) on Win32. svn path=/trunk/; revision=30800
Diffstat (limited to 'addressbook/gui/widgets/gal-view-minicard.c')
-rw-r--r--addressbook/gui/widgets/gal-view-minicard.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c
index 05937ea990..3031f31d29 100644
--- a/addressbook/gui/widgets/gal-view-minicard.c
+++ b/addressbook/gui/widgets/gal-view-minicard.c
@@ -8,10 +8,15 @@
* (C) 2000, 2001 Ximian, Inc.
*/
#include <config.h>
-#include "gal-view-minicard.h"
+
#include <libxml/parser.h>
+
+#include <libedataserver/e-xml-utils.h>
+
#include <e-util/e-xml-utils.h>
+#include "gal-view-minicard.h"
+
#define PARENT_TYPE gal_view_get_type ()
#define d(x) x
@@ -22,7 +27,8 @@ gal_view_minicard_load (GalView *view,
const char *filename)
{
xmlDoc *doc;
- doc = xmlParseFile (filename);
+
+ doc = e_xml_parse_file (filename);
if (doc) {
xmlNode *root = xmlDocGetRootElement(doc);
GAL_VIEW_MINICARD (view)->column_width = e_xml_get_double_prop_by_name_with_default (root, "column_width", 150);
@@ -41,7 +47,7 @@ gal_view_minicard_save (GalView *view,
root = xmlNewNode (NULL, "EMinicardViewState");
e_xml_set_double_prop_by_name (root, "column_width", GAL_VIEW_MINICARD (view)->column_width);
xmlDocSetRootElement(doc, root);
- xmlSaveFile(filename, doc);
+ e_xml_save_file (filename, doc);
xmlFreeDoc(doc);
}