diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-05 22:24:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-06 04:40:50 +0800 |
commit | f6de38811c202186415e6647ef43511525c80572 (patch) | |
tree | 088d3133e8120a536dce0f91e1ceb5a873dcfcf9 /e-util | |
parent | 844510797455940352cf08bc7ca1388a594a00af (diff) | |
download | gsoc2013-evolution-f6de38811c202186415e6647ef43511525c80572.tar.gz gsoc2013-evolution-f6de38811c202186415e6647ef43511525c80572.tar.zst gsoc2013-evolution-f6de38811c202186415e6647ef43511525c80572.zip |
Use gal_view_collection_get_user_directory() where needed.
GalViewInstance and EMailPanedView need access. Currently they're just
using the public GalViewCollection members directly, but those are about
to be sealed up.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/gal-view-instance.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/e-util/gal-view-instance.c b/e-util/gal-view-instance.c index 3eac358515..651408d101 100644 --- a/e-util/gal-view-instance.c +++ b/e-util/gal-view-instance.c @@ -348,6 +348,7 @@ gal_view_instance_construct (GalViewInstance *instance, { gchar *filename; gchar *safe_id; + const gchar *user_directory; g_return_val_if_fail (gal_view_collection_loaded (collection), NULL); @@ -366,12 +367,17 @@ gal_view_instance_construct (GalViewInstance *instance, safe_id = g_strdup (instance->instance_id); e_filename_make_safe (safe_id); + user_directory = + gal_view_collection_get_user_directory (instance->collection); + filename = g_strdup_printf ("custom_view-%s.xml", safe_id); - instance->custom_filename = g_build_filename (instance->collection->local_dir, filename, NULL); + instance->custom_filename = + g_build_filename (user_directory, filename, NULL); g_free (filename); filename = g_strdup_printf ("current_view-%s.xml", safe_id); - instance->current_view_filename = g_build_filename (instance->collection->local_dir, filename, NULL); + instance->current_view_filename = + g_build_filename (user_directory, filename, NULL); g_free (filename); g_free (safe_id); |