aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index af5dfd741d..4dba37c7e3 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -238,7 +238,7 @@ void mail_msg_free(void *msg)
MAIL_MT_UNLOCK(mail_msg_lock);
- if (m->cancel && m->cancel != -1) {
+ if (m->cancel) {
camel_operation_mute(m->cancel);
camel_operation_unref(m->cancel);
}
@@ -309,7 +309,7 @@ void mail_msg_check_error(void *msg)
g_signal_connect(gd, "response", G_CALLBACK(error_response), m->ops);
g_signal_connect(gd, "destroy", G_CALLBACK(error_destroy), m->ops);
if (m->priv->cancelable)
- m->priv->error = gd;
+ m->priv->error = (GtkWidget *) gd;
else
gtk_widget_show((GtkWidget *)gd);
}