From bef182255624468737832990a344cd31a82dc9d9 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 30 Nov 2003 20:53:49 +0000 Subject: Remove all the syncFolder stuff since it's not in the Component interface * mail-offline-handler.c: Remove all the syncFolder stuff since it's not in the Component interface anymore. * mail-mt.c: Remove declaration for global_shell_client. #if 0 all the code that uses that. * mail-component-factory.c: Remove declaration for global_shell_client. * mail-vfolder.c: Remove declaration for global_shell_client. svn path=/trunk/; revision=23506 --- mail/mail-mt.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'mail/mail-mt.c') diff --git a/mail/mail-mt.c b/mail/mail-mt.c index b9e0df4cb8..21903061a9 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -42,7 +42,6 @@ static void mail_operation_status(struct _CamelOperation *op, const char *what, #define MAIL_MT_LOCK(x) pthread_mutex_lock(&x) #define MAIL_MT_UNLOCK(x) pthread_mutex_unlock(&x) #endif -extern EvolutionShellClient *global_shell_client; /* background operation status stuff */ struct _mail_msg_priv { @@ -797,8 +796,7 @@ static int busy_state; static void do_set_busy(struct _mail_msg *mm) { - if (global_shell_client) - set_stop(busy_state > 0); + set_stop(busy_state > 0); } struct _mail_msg_op set_busy_op = { @@ -814,7 +812,7 @@ void mail_enable_stop(void) MAIL_MT_LOCK(status_lock); busy_state++; - if (busy_state == 1 && global_shell_client) { + if (busy_state == 1) { m = mail_msg_new(&set_busy_op, NULL, sizeof(*m)); e_msgport_put(mail_gui_port, (EMsg *)m); } @@ -827,7 +825,7 @@ void mail_disable_stop(void) MAIL_MT_LOCK(status_lock); busy_state--; - if (busy_state == 0 && global_shell_client) { + if (busy_state == 0) { m = mail_msg_new(&set_busy_op, NULL, sizeof(*m)); e_msgport_put(mail_gui_port, (EMsg *)m); } @@ -860,6 +858,7 @@ static void do_op_status(struct _mail_msg *mm) msg = g_hash_table_lookup (mail_msg_active_table, m->data); +#if 0 /* shortcut processing, i.e. if we have no global_shell_client and no activity, we can't create one */ if (msg == NULL || (msg->priv->activity == NULL && global_shell_client == NULL)) { MAIL_MT_UNLOCK (mail_msg_lock); @@ -949,6 +948,7 @@ static void do_op_status(struct _mail_msg *mm) } else { MAIL_MT_UNLOCK (mail_msg_lock); } +#endif } static void @@ -973,6 +973,7 @@ mail_operation_status (struct _CamelOperation *op, const char *what, int pc, voi d(printf("got operation statys: %s %d%%\n", what, pc)); +#if 0 if (global_shell_client == NULL) return; @@ -990,6 +991,7 @@ mail_operation_status (struct _CamelOperation *op, const char *what, int pc, voi m->pc = pc; m->data = data; e_msgport_put(mail_gui_port, (EMsg *)m); +#endif } /* ******************** */ -- cgit