aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-02-07 19:15:10 +0800
committerChris Lahey <clahey@src.gnome.org>2002-02-07 19:15:10 +0800
commit9f83d6d31872f5bce584c52738385bc2ae568a05 (patch)
treeeb3ebef3c7785c72fd6dd1436c8fba22a54be3a7 /widgets/menus
parent9f1ac34671b0446c8eb8855e0aca62d5b69840b0 (diff)
downloadgsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.tar
gsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.tar.gz
gsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.tar.bz2
gsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.tar.lz
gsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.tar.xz
gsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.tar.zst
gsoc2013-evolution-9f83d6d31872f5bce584c52738385bc2ae568a05.zip
Create the local directory when loading instead of when saving. This way
2002-02-07 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c (gal_view_collection_load): Create the local directory when loading instead of when saving. This way instance data will have somewhere to be saved. svn path=/trunk/; revision=15591
Diffstat (limited to 'widgets/menus')
-rw-r--r--widgets/menus/gal-view-collection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c
index 9f56de9715..290c28f688 100644
--- a/widgets/menus/gal-view-collection.c
+++ b/widgets/menus/gal-view-collection.c
@@ -472,6 +472,8 @@ gal_view_collection_load (GalViewCollection *collection)
g_return_if_fail (collection->system_dir != NULL);
g_return_if_fail (!collection->loaded);
+ e_create_directory(collection->local_dir);
+
load_single_dir(collection, collection->local_dir, TRUE);
load_single_dir(collection, collection->system_dir, FALSE);
gal_view_collection_changed(collection);
@@ -499,8 +501,6 @@ gal_view_collection_save (GalViewCollection *collection)
g_return_if_fail (GAL_IS_VIEW_COLLECTION (collection));
g_return_if_fail (collection->local_dir != NULL);
- e_create_directory(collection->local_dir);
-
doc = xmlNewDoc("1.0");
root = xmlNewNode(NULL, "GalViewCollection");
xmlDocSetRootElement(doc, root);