aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-03-20 17:24:06 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-03-20 17:24:06 +0800
commit2361659ec0dc9c76a6b65bbd197b50f4a51f905f (patch)
tree8adede8ac47831913094b3a0e014693f0acf52ce /mail
parent43f8ec830ed5b415baeb4d70d95c69e9c1f8e20b (diff)
downloadgsoc2013-evolution-2361659ec0dc9c76a6b65bbd197b50f4a51f905f.tar.gz
gsoc2013-evolution-2361659ec0dc9c76a6b65bbd197b50f4a51f905f.tar.zst
gsoc2013-evolution-2361659ec0dc9c76a6b65bbd197b50f4a51f905f.zip
Added code to set the mail view column for sent folder.
svn path=/trunk/; revision=31724
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-folder-view.c9
2 files changed, 12 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 12aed54834..76c65d7ec6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-20 Srinivasa Ragavan <sragavan@novell.com>
+
+ * em-folder-view.c: (emfv_setup_view_instance): Added code to set the
+ mail view column for sent folder.
+
2006-03-12 Frank Arnold <farnold@cvs.gnome.org>
* default/de/Inbox: Updated German translation of default inbox.
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index e369bba550..af5f66a75b 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -500,6 +500,7 @@ emfv_setup_view_instance(EMFolderView *emfv)
gboolean outgoing;
char *id;
static GalViewCollection *collection = NULL;
+ CamelFolderInfo *fi = NULL;
g_assert(emfv->folder);
g_assert(emfv->folder_uri);
@@ -558,8 +559,12 @@ emfv_setup_view_instance(EMFolderView *emfv)
id = mail_config_folder_to_safe_url (emfv->folder);
p->view_instance = gal_view_instance_new (collection, id);
g_free (id);
-
- if (outgoing)
+
+ fi = camel_store_get_folder_info (emfv->folder->parent_store,
+ emfv->folder->full_name,
+ CAMEL_STORE_FOLDER_INFO_FAST,
+ NULL);
+ if (outgoing || (fi && (fi->flags & CAMEL_FOLDER_TYPE_SENT)))
gal_view_instance_set_default_view(p->view_instance, "As_Sent_Folder");
gal_view_instance_load(p->view_instance);