From a70656c2213be0097b6d493eb920db989def07c4 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 16 May 2007 04:24:38 +0000 Subject: ** Added support to specify the default thread state for messages. svn path=/trunk/; revision=33551 --- mail/ChangeLog | 7 +++++++ mail/evolution-mail.schemas.in.in | 15 +++++++++++++++ mail/message-list.c | 7 +++++-- 3 files changed, 27 insertions(+), 2 deletions(-) (limited to 'mail') 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 + + ** 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 ** 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 @@ + + /schemas/apps/evolution/mail/display/thread_expand + /apps/evolution/mail/display/thread_expand + evolution-mail + bool + false + + Default value for thread expand state + + This setting specifies whether the threads should be in expanded + or collapsed state by default. Evolution requires a restart + + + + 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 -- cgit