aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-07 11:31:10 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-07 11:31:10 +0800
commite8054ecaced5185c6c5a921cc678330590b52a3f (patch)
tree302d6c6c2a23b9881f1f7614724ea3ac17086b8b /widgets/menus
parent758b87ad3702f4c0b55c0b3174b521f365ff5896 (diff)
downloadgsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar
gsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar.gz
gsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar.bz2
gsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar.lz
gsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar.xz
gsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar.zst
gsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.zip
Create the local directory when saving if it doesn't exist already.
2001-02-06 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (gal_view_collection_save): Create the local directory when saving if it doesn't exist already. svn path=/trunk/; revision=8043
Diffstat (limited to 'widgets/menus')
-rw-r--r--widgets/menus/gal-view-collection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c
index 9b1922b102..6b110e2867 100644
--- a/widgets/menus/gal-view-collection.c
+++ b/widgets/menus/gal-view-collection.c
@@ -328,6 +328,8 @@ gal_view_collection_save (GalViewCollection *collection)
xmlNode *root;
char *filename;
+ e_create_directory(collection->local_dir);
+
doc = xmlNewDoc("1.0");
root = xmlNewNode(NULL, "GalViewCollection");
xmlDocSetRootElement(doc, root);
@@ -360,7 +362,6 @@ gal_view_collection_save (GalViewCollection *collection)
e_xml_set_string_prop_by_name(child, "id", item->id);
e_xml_set_string_prop_by_name(child, "title", item->title);
e_xml_set_string_prop_by_name(child, "type", item->type);
-
}
filename = g_concat_dir_and_file(collection->local_dir, "galview.xml");
xmlSaveFile(filename, doc);