aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-09-30 21:39:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-01 01:55:39 +0800
commitfc2c71593a190a0742639cd1f22664aecdc0d05d (patch)
treee4a43f616d514c27c1fef35c4caef04e4830cfa6 /mail/mail-mt.c
parent8dd3119dadd898f5d401ad413593d05258131872 (diff)
downloadgsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.tar
gsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.tar.gz
gsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.tar.bz2
gsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.tar.lz
gsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.tar.xz
gsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.tar.zst
gsoc2013-evolution-fc2c71593a190a0742639cd1f22664aecdc0d05d.zip
Remove "type" parameter from mail_async_event_emit().
All remaining cases use MAIL_ASYNC_GUI, so remove mail_async_event_t altogether.
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 60938abc22..45ab9a4df6 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -583,7 +583,6 @@ struct _proxy_msg {
MailMsg base;
MailAsyncEvent *ea;
- mail_async_event_t type;
GThread *thread;
guint idle_id;
@@ -637,7 +636,6 @@ mail_async_event_new (void)
guint
mail_async_event_emit (MailAsyncEvent *ea,
- mail_async_event_t type,
MailAsyncFunc func,
gpointer o,
gpointer event_data,
@@ -654,7 +652,6 @@ mail_async_event_emit (MailAsyncEvent *ea,
m->event_data = event_data;
m->data = data;
m->ea = ea;
- m->type = type;
m->thread = NULL;
id = m->base.seq;
@@ -665,14 +662,11 @@ mail_async_event_emit (MailAsyncEvent *ea,
/* We use an idle function instead of our own message port only
* because the gui message ports's notification buffer might
* overflow and deadlock us. */
- if (type == MAIL_ASYNC_GUI) {
- if (mail_in_main_thread ())
- m->idle_id = g_idle_add (
- (GSourceFunc) idle_async_event, m);
- else
- mail_msg_main_loop_push (m);
- } else
- mail_msg_fast_ordered_push (m);
+ if (mail_in_main_thread ())
+ m->idle_id = g_idle_add (
+ (GSourceFunc) idle_async_event, m);
+ else
+ mail_msg_main_loop_push (m);
return id;
}