aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-06-15 06:08:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-06-15 06:08:54 +0800
commit1fb67eaca4790ba3e92e42dd5d93536aa4206b70 (patch)
tree3f9d3a35bdd9ee63ad3a3a89b83b5325883b50ac /mail/folder-browser-factory.c
parentef27346aa88f1627fdb882d64bca10e70b5a1749 (diff)
downloadgsoc2013-evolution-1fb67eaca4790ba3e92e42dd5d93536aa4206b70.tar.gz
gsoc2013-evolution-1fb67eaca4790ba3e92e42dd5d93536aa4206b70.tar.zst
gsoc2013-evolution-1fb67eaca4790ba3e92e42dd5d93536aa4206b70.zip
Updated to reflect changes to mail_config_[g,s]et_thread_list().
2001-06-14 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (got_folder): Updated to reflect changes to mail_config_[g,s]et_thread_list(). (folder_browser_toggle_threads): Same. * folder-browser-factory.c (control_activate): Updated to reflect changes to mail_config_[g,s]et_thread_list(). * mail-config.c (mail_config_write_on_exit): Do cleanup when we're done. (mail_config_set_thread_list): Send in a URI so we can save the state on a per-folder basis. (mail_config_get_thread_list): Send in a URI so we can retrieve the state on a per-folder basis. * component-factory.c: Setup the accepted_dnd_types. Also added skeleton code for DnD. svn path=/trunk/; revision=10240
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index d392eb6a95..38602b5a64 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -251,13 +251,13 @@ control_activate (BonoboControl *control,
bonobo_ui_util_set_ui (
uic, EVOLUTION_DATADIR,
"evolution-mail.xml", "evolution-mail");
-
- state = mail_config_get_thread_list();
- bonobo_ui_component_set_prop(uic, "/commands/ViewThreaded", "state", state?"1":"0", NULL);
- bonobo_ui_component_add_listener(uic, "ViewThreaded", folder_browser_toggle_threads, folder_browser);
+
+ state = mail_config_get_thread_list (FOLDER_BROWSER (folder_browser)->uri);
+ bonobo_ui_component_set_prop (uic, "/commands/ViewThreaded", "state", state ? "1" : "0", NULL);
+ bonobo_ui_component_add_listener (uic, "ViewThreaded", folder_browser_toggle_threads, folder_browser);
/* FIXME: this kind of bypasses bonobo but seems the only way when we change components */
- folder_browser_toggle_threads(uic, "", Bonobo_UIComponent_STATE_CHANGED, state?"1":"0", folder_browser);
-
+ folder_browser_toggle_threads (uic, "", Bonobo_UIComponent_STATE_CHANGED, state ? "1" : "0", folder_browser);
+
state = mail_config_get_message_display_style ();
bonobo_ui_component_set_prop (uic, message_display_styles[state],
"state", "1", NULL);
@@ -267,7 +267,7 @@ control_activate (BonoboControl *control,
/* FIXME: this kind of bypasses bonobo but seems the only way when we change components */
folder_browser_set_message_display_style (uic, strrchr (message_display_styles[state], '/') + 1,
Bonobo_UIComponent_STATE_CHANGED, "1", folder_browser);
-
+
if (fb->folder && CAMEL_IS_VTRASH_FOLDER(fb->folder)) {
bonobo_ui_component_set_prop(uic, "/commands/HideDeleted", "sensitive", "0", NULL);
state = FALSE;
@@ -287,9 +287,9 @@ control_activate (BonoboControl *control,
folder_browser_setup_property_menu (fb, uic);
e_pixmaps_update (uic, pixcache);
-
+
bonobo_ui_component_set_prop(uic, "/commands/MailStop", "sensitive", "0", NULL);
-
+
bonobo_ui_component_thaw (uic, NULL);
if (fb->folder)