aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorJeremy Wise <jwise@src.gnome.org>2000-08-09 10:06:20 +0800
committerJeremy Wise <jwise@src.gnome.org>2000-08-09 10:06:20 +0800
commit491b3c3c779ba32dfeba25d5ffcab064e842c910 (patch)
treefe40590668731ef969f2bd3f49f6df585972ebda /mail/message-list.c
parent6d34729106baa2e3a9fd9db29db04b0f9b8e984b (diff)
downloadgsoc2013-evolution-491b3c3c779ba32dfeba25d5ffcab064e842c910.tar.gz
gsoc2013-evolution-491b3c3c779ba32dfeba25d5ffcab064e842c910.tar.zst
gsoc2013-evolution-491b3c3c779ba32dfeba25d5ffcab064e842c910.zip
Value for threaded list view is now saved via gnome-config. This means that you can FINALLY shut off the threaded view once and for all :)
svn path=/trunk/; revision=4621
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index eb6a163bcc..c20534541e 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -19,6 +19,7 @@
#include <camel/camel-folder.h>
#include "message-list.h"
#include "message-thread.h"
+#include "mail-config.h"
#include "mail.h"
#include "Mail.h"
#include "widgets/e-table/e-table-header-item.h"
@@ -848,7 +849,7 @@ message_list_regenerate (MessageList *message_list, const char *search)
e_tree_model_node_insert(etm, NULL, 0, message_list);
e_tree_model_node_set_expanded (etm, message_list->tree_root, TRUE);
- if (threaded_view) {
+ if (mail_config_thread_list()) {
struct _container *head;
head = thread_messages (message_list->folder, uids);
@@ -1031,14 +1032,11 @@ message_list_foreach (MessageList *message_list,
mlfe_callback, &mlfe_data);
}
-gboolean threaded_view = TRUE;
-
void
message_list_toggle_threads (BonoboUIHandler *uih, void *user_data,
const char *path)
{
MessageList *ml = user_data;
-
- threaded_view = bonobo_ui_handler_menu_get_toggle_state (uih, path);
+ mail_config_set_thread_list(bonobo_ui_handler_menu_get_toggle_state (uih, path));
message_list_regenerate (ml, ml->search);
}