aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-12-01 04:53:49 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-12-01 04:53:49 +0800
commitbef182255624468737832990a344cd31a82dc9d9 (patch)
treea17a1a861f2370df8d21a179fbc3afea22b795e9 /mail/mail-mt.c
parent5f2ba41078c760533e5650752dc6f8712e864ddc (diff)
downloadgsoc2013-evolution-bef182255624468737832990a344cd31a82dc9d9.tar.gz
gsoc2013-evolution-bef182255624468737832990a344cd31a82dc9d9.tar.zst
gsoc2013-evolution-bef182255624468737832990a344cd31a82dc9d9.zip
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
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c12
1 files changed, 7 insertions, 5 deletions
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
}
/* ******************** */