aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-01-23 11:09:31 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-01-23 11:09:31 +0800
commit8825b35b7613fd532813a422b908a097c2791513 (patch)
treec03b982ca2c1404c9e06c5a3e695a471d7ef89f7 /mail/folder-browser.c
parentc9d980f3b91cdd426177d827596dc10aa2cc595d (diff)
downloadgsoc2013-evolution-8825b35b7613fd532813a422b908a097c2791513.tar.gz
gsoc2013-evolution-8825b35b7613fd532813a422b908a097c2791513.tar.zst
gsoc2013-evolution-8825b35b7613fd532813a422b908a097c2791513.zip
Removed. (mail_config_set_thread_list): Removed.
2003-01-22 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_get_thread_list): Removed. (mail_config_set_thread_list): Removed. (mail_config_uri_renamed): No longer needs to change threaded state for each url either. (mail_config_write_on_exit): Updated. * folder-browser-ui.c (folder_browser_ui_add_list): Get the threaded state via gconf. * folder-browser.c (folder_browser_toggle_threads): Save the threaded state. svn path=/trunk/; revision=19580
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 386789b2b8..2f9c287fad 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -3,7 +3,7 @@
* Authors: Miguel De Icaza <miguel@ximian.com>
* Jeffrey Stedfast <fejj@ximian.com>
*
- * Copyright 2000,2001 Ximian, Inc. (www.ximian.com)
+ * Copyright 2000-2003 Ximian, Inc. (www.ximian.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
@@ -1319,18 +1319,21 @@ folder_browser_toggle_threads (BonoboUIComponent *component,
gpointer user_data)
{
FolderBrowser *fb = user_data;
+ GConfClient *gconf;
int prev_state;
- if (type != Bonobo_UIComponent_STATE_CHANGED
- || fb->message_list == NULL)
+ if (type != Bonobo_UIComponent_STATE_CHANGED || fb->message_list == NULL)
return;
- mail_config_set_thread_list (fb->uri, atoi (state));
+ gconf = gconf_client_get_default ();
+ gconf_client_set_bool (gconf, "/apps/evolution/mail/display/thread_list",
+ atoi (state), NULL);
+
message_list_set_threaded (fb->message_list, atoi (state));
prev_state = fb->selection_state;
fb->selection_state = FB_SELSTATE_UNDEFINED;
- folder_browser_ui_set_selection_state (fb, prev_state);
+ folder_browser_ui_set_selection_state (fb, prev_state);
}
void