aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
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
parent758b87ad3702f4c0b55c0b3174b521f365ff5896 (diff)
downloadgsoc2013-evolution-e8054ecaced5185c6c5a921cc678330590b52a3f.tar.gz
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')
-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);
r> * - Update to 2.30pav2008-04-172-9/+4 | | | | | | PR: ports/120031 Submitted by: Hung-Yi Chen <gaod@hychen.org> Approved by: maintainer timeout (laszlof; 2 months) * - BROKEN across the boardpav2007-12-261-2/+0 | | | | Reported by: pointyhat * Mark as broken with gcc4.2 on 64-bit archs.linimon2007-10-011-0/+6 | * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 | | | | | - Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}. * Fix path issue in configure script.laszlof2007-03-121-1/+7 | | | | | Reported by: alexsm@gmail.com Patched by: miwi * Update my email address in all ports that I maintain.laszlof2006-11-071-1/+1 | | | | Approved by: flz (mentor) * Now builds on amd64kris2006-03-081-4/+0 | | | | Approved by: portmgr (implicit) * - Add SHA256 to all ports submitter maintaingarga2005-11-111-0/+1 | | | | | PR: ports/88791 Submitted by: Frank Laszlo <laszlof@vonostingroup.com> * - Update to 2.29: This version adds various features and bugfixes outlinedvs2005-11-093-26/+6 | | | | | | | on: http://www.isi.edu/nsnam/ns/CHANGES.html - Assign maintainership to submitter PR: ports/88405 * - Mark BROKEN on sparc64/ia64pav2005-08-091-0/+4 | | | | | Reported by: krismail Approved by: portmgr (kris) * - Update to 2.28pav2005-07-278-188/+150 | | | | | PR: ports/84119 Submitted by: Lars Eggert <lars.eggert@gmx.net> * BROKEN on !i386 and FreeBSD >= 5.x: Does not compilekris2005-03-271-6/+2 | | | | Approved by: portmgr (self) * Fix build error.nork2004-06-134-4/+35 | | | | | | Reported by: Jon <sici@myrealbox.com> Pointed out by: bento via kris Submitted by: Hiroyuki Une <harrier@seiryu.cim.hkg.ac.jp> * BROKEN on 5.x: Does not compilekris2004-05-231-0/+4 | * BROKEN on sparc64: Does not compilekris2004-05-131-0/+4 | * o Update to 2.27.nork2004-04-194-7/+29 | | | | | | | o Upgrade dependency on tcl/tk to 8.4. PR: ports-jp/14620 Submitted by: Hiroyuki Une <harrier@seiryu.cim.hkg.ac.jp> * BROKEN on alpha 4.x: Does not compilekris2004-03-201-1/+7 |