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 /mail | |
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 'mail')
-rw-r--r-- | mail/e-mail-paned-view.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c index 2aa602b9b2..f8b008a45c 100644 --- a/mail/e-mail-paned-view.c +++ b/mail/e-mail-paned-view.c @@ -882,6 +882,7 @@ mail_paned_view_update_view_instance (EMailView *view) (orientation == GTK_ORIENTATION_HORIZONTAL); if (show_vertical_view) { + const gchar *user_directory; gchar *filename; /* Force the view instance into vertical view. */ @@ -889,16 +890,19 @@ mail_paned_view_update_view_instance (EMailView *view) g_free (view_instance->custom_filename); g_free (view_instance->current_view_filename); + user_directory = gal_view_collection_get_user_directory ( + view_collection); + filename = g_strdup_printf ( "custom_wide_view-%s.xml", view_id); - view_instance->custom_filename = g_build_filename ( - view_collection->local_dir, filename, NULL); + view_instance->custom_filename = + g_build_filename (user_directory, filename, NULL); g_free (filename); filename = g_strdup_printf ( "current_wide_view-%s.xml", view_id); - view_instance->current_view_filename = g_build_filename ( - view_collection->local_dir, filename, NULL); + view_instance->current_view_filename = + g_build_filename (user_directory, filename, NULL); g_free (filename); } |