From b0deb6e8ac61059829c673b091faa2d192a030e0 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 5 Mar 2003 13:48:41 +0000 Subject: Removed old quit code. (owner_unset_cb): Make this call synchronous. Wont 2003-03-05 Not Zed * component-factory.c (idle_quit): Removed old quit code. (owner_unset_cb): Make this call synchronous. Wont cover all cases but should be ok most of the time. svn path=/trunk/; revision=20167 --- mail/ChangeLog | 6 ++++ mail/component-factory.c | 84 +++++++++++++++++++++++++++--------------------- 2 files changed, 53 insertions(+), 37 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 02a80f2806..fdce71cd37 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-03-05 Not Zed + + * component-factory.c (idle_quit): Removed old quit code. + (owner_unset_cb): Make this call synchronous. Wont cover all + cases but should be ok most of the time. + 2003-03-04 Jeffrey Stedfast * mail-search.c: Prototype some functions to shut the compiler up. diff --git a/mail/component-factory.c b/mail/component-factory.c index 54a8adabe4..477148bd14 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -890,41 +890,6 @@ user_create_new_item_cb (EvolutionShellComponent *shell_component, g_warning ("Don't know how to create item of type \"%s\"", id); } -static gboolean -idle_quit (gpointer user_data) -{ - static int shutdown_vfolder = FALSE; - static int shutdown_shutdown = FALSE; - - if (!shutdown_shutdown) { - if (e_thread_busy(NULL) || mail_msg_active(-1)) { - usleep(10000); - return TRUE; - } - - if (!shutdown_vfolder) { - shutdown_vfolder = TRUE; - mail_vfolder_shutdown(); - return TRUE; - } - - if (mail_async_event_destroy(async_event) == -1) - return TRUE; - - shutdown_shutdown = TRUE; - g_hash_table_foreach (storages_hash, free_storage, NULL); - g_hash_table_destroy (storages_hash); - storages_hash = NULL; - } - - if (e_list_length (folder_browser_factory_get_control_list ())) - return TRUE; - - bonobo_main_quit (); - - return FALSE; -} - static void owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data); /* Table for signal handler setup/cleanup */ @@ -946,7 +911,11 @@ static void owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data) { GConfClient *gconf; + CORBA_Environment ev; int i; + EIterator *it; + + printf("mailer shutdown\n"); gconf = gconf_client_get_default (); for (i=0;i