aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
author3 <NotZed@Ximian.com>2001-10-24 04:42:57 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-24 04:42:57 +0800
commita0974e678aefa0e9ce39ecb03f563739d32005c2 (patch)
tree3947f42f96da66ea9b1d2d9c3042b61682a4abda /mail/mail-config.c
parent174691b2120977e983fcf63bdde0e48c402ba69a (diff)
downloadgsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.tar
gsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.tar.gz
gsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.tar.bz2
gsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.tar.lz
gsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.tar.xz
gsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.tar.zst
gsoc2013-evolution-a0974e678aefa0e9ce39ecb03f563739d32005c2.zip
Removed, all functionality moved to mail-session.
2001-10-23 <NotZed@Ximian.com> * mail-mt.c (mail_user_message): (mail_get_password): Removed, all functionality moved to mail-session. * mail-config.c (mail_config_write_on_exit): Check threaded/preview hash is null before using it, its setup on demand so itmight nto be initialised here. * mail-session.c (request_password): Remove password_current stuff. (alert_user): Redont, similar to get_pass. Do things as async as possible, and dont even wait for a response if we're not asking for the cancel button (this may or may not be right behaviour - need to check). mail_user_message() code replaced from the stuff in mail-mt.c (MailSession): Added a lock field. (init): Setup lock. (finalise): fRee lock. (register_timeout): Redone. We now allocate our own 'timeoutid's, and <> to the real things asynchronously. Use async_event's so we can make sure we have no outstanding ones after shutdown. (mail_session_enable_interaction): If interaction has been disabled, and we have either a message-box open, or a password request open and/or any pending message boxes/passwords, blow 'em away. (main_register_timeout): If we have pending remove of this same timeout, dont do anything. (timeout_timeout): Properly honour the result, remove the timout if it returns false. svn path=/trunk/; revision=13952
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 9e66eea531..772ff76428 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -875,12 +875,12 @@ mail_config_write_on_exit (void)
bonobo_config_set_string_wrapper (config->db, "/Mail/Filters/log_path",
config->filter_log_path, NULL);
+
+ if (config->threaded_hash)
+ g_hash_table_foreach_remove (config->threaded_hash, hash_save_state, "Threads");
- g_hash_table_foreach_remove (config->threaded_hash,
- hash_save_state, "Threads");
-
- g_hash_table_foreach_remove (config->preview_hash,
- hash_save_state, "Preview");
+ if (config->preview_hash)
+ g_hash_table_foreach_remove (config->preview_hash, hash_save_state, "Preview");
CORBA_exception_init (&ev);
Bonobo_ConfigDatabase_sync (config->db, &ev);