aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-05-16 12:24:38 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-05-16 12:24:38 +0800
commita70656c2213be0097b6d493eb920db989def07c4 (patch)
tree6463174be5600bc416fb7607be231a8833ce21ca /mail
parent80c82227611ca9856bf34ea470f712c12b2d5bae (diff)
downloadgsoc2013-evolution-a70656c2213be0097b6d493eb920db989def07c4.tar.gz
gsoc2013-evolution-a70656c2213be0097b6d493eb920db989def07c4.tar.zst
gsoc2013-evolution-a70656c2213be0097b6d493eb920db989def07c4.zip
** Added support to specify the default thread state for messages.
svn path=/trunk/; revision=33551
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/evolution-mail.schemas.in.in15
-rw-r--r--mail/message-list.c7
3 files changed, 27 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 163c80da53..faf8beaa20 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-16 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Added support to specify the default thread state for messages.
+
+ * evolution-mail.schemas.in.in:
+ * message-list.c: (message_list_construct):
+
2007-05-15 Srinivasa Ragavan <sragavan@novell.com>
** Improved options for offline support.
diff --git a/mail/evolution-mail.schemas.in.in b/mail/evolution-mail.schemas.in.in
index 1276d96ac0..7d40eaa9ce 100644
--- a/mail/evolution-mail.schemas.in.in
+++ b/mail/evolution-mail.schemas.in.in
@@ -545,6 +545,21 @@
</locale>
</schema>
+ <schema>
+ <key>/schemas/apps/evolution/mail/display/thread_expand</key>
+ <applyto>/apps/evolution/mail/display/thread_expand</applyto>
+ <owner>evolution-mail</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Default value for thread expand state</short>
+ <long>
+ This setting specifies whether the threads should be in expanded
+ or collapsed state by default. Evolution requires a restart
+ </long>
+ </locale>
+ </schema>
+
<!-- Message Window -->
<schema>
diff --git a/mail/message-list.c b/mail/message-list.c
index 71b33fb4e7..0d9afd2445 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2236,8 +2236,11 @@ message_list_construct (MessageList *message_list)
ml_value_to_string,
message_list);
-
- e_tree_memory_set_expanded_default(E_TREE_MEMORY(message_list->model), TRUE);
+
+ e_tree_memory_set_expanded_default(E_TREE_MEMORY(message_list->model),
+ gconf_client_get_bool (mail_config_get_gconf_client(),
+ "/apps/evolution/mail/display/thread_expand",
+ NULL));
/*
* The etree