aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libemail-utils/mail-mt.c8
-rw-r--r--mail/e-mail-backend.c18
2 files changed, 13 insertions, 13 deletions
diff --git a/libemail-utils/mail-mt.c b/libemail-utils/mail-mt.c
index fedfd5b400..24a83db747 100644
--- a/libemail-utils/mail-mt.c
+++ b/libemail-utils/mail-mt.c
@@ -45,7 +45,7 @@ static GMutex *mail_msg_lock;
static GCond *mail_msg_cond;
static MailMsgCreateActivityFunc create_activity = NULL;
-static MailMsgSubmitActivityFunc submit_acitivity = NULL;
+static MailMsgSubmitActivityFunc submit_activity = NULL;
static MailMsgFreeActivityFunc free_activity = NULL;
static MailMsgCompleteActivityFunc complete_activity = NULL;
static MailMsgAlertErrorFunc alert_error = NULL;
@@ -64,7 +64,7 @@ mail_msg_register_activities (MailMsgCreateActivityFunc acreate,
/* XXX This is an utter hack to keep EActivity out
* of EDS and still let Evolution do EActivity. */
create_activity = acreate;
- submit_acitivity = asubmit;
+ submit_activity = asubmit;
free_activity = freeact;
complete_activity = comp_act;
cancel_activity = cancel_act;
@@ -92,8 +92,8 @@ static gboolean
mail_msg_submit (CamelOperation *cancellable)
{
- if (submit_acitivity)
- submit_acitivity ((GCancellable *) cancellable);
+ if (submit_activity)
+ submit_activity ((GCancellable *) cancellable);
return FALSE;
}
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 251bce953a..fcb99edfa5 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -891,9 +891,9 @@ mail_backend_remove_store (EMailSession *session,
em_folder_tree_model_remove_store (model, store);
}
-#define SET_ACITIVITY(cancellable, activity) \
+#define SET_ACTIVITY(cancellable, activity) \
g_object_set_data (G_OBJECT (cancellable), "e-activity", activity)
-#define GET_ACITIVITY(cancellable) \
+#define GET_ACTIVITY(cancellable) \
g_object_get_data (G_OBJECT (cancellable), "e-activity")
static void
@@ -904,7 +904,7 @@ mail_mt_create_activity (GCancellable *cancellable)
activity = e_activity_new ();
e_activity_set_percent (activity, 0.0);
e_activity_set_cancellable (activity, cancellable);
- SET_ACITIVITY (cancellable, activity);
+ SET_ACTIVITY (cancellable, activity);
}
static void
@@ -918,7 +918,7 @@ mail_mt_submit_activity (GCancellable *cancellable)
shell_backend = e_shell_get_backend_by_name (
shell, "mail");
- activity = GET_ACITIVITY (cancellable);
+ activity = GET_ACTIVITY (cancellable);
if (activity)
e_shell_backend_add_activity (shell_backend, activity);
@@ -927,16 +927,16 @@ mail_mt_submit_activity (GCancellable *cancellable)
static void
mail_mt_free_activity (GCancellable *cancellable)
{
- EActivity *activity = GET_ACITIVITY (cancellable);
+ EActivity *activity = GET_ACTIVITY (cancellable);
if (activity)
g_object_unref (activity);
}
static void
-mail_mt_complete_acitivity (GCancellable *cancellable)
+mail_mt_complete_activity (GCancellable *cancellable)
{
- EActivity *activity = GET_ACITIVITY (cancellable);
+ EActivity *activity = GET_ACTIVITY (cancellable);
if (activity)
e_activity_set_state (activity, E_ACTIVITY_COMPLETED);
@@ -945,7 +945,7 @@ mail_mt_complete_acitivity (GCancellable *cancellable)
static void
mail_mt_cancel_activity (GCancellable *cancellable)
{
- EActivity *activity = GET_ACITIVITY (cancellable);
+ EActivity *activity = GET_ACTIVITY (cancellable);
if (activity)
e_activity_set_state (activity, E_ACTIVITY_CANCELLED);
@@ -1101,7 +1101,7 @@ mail_backend_constructed (GObject *object)
mail_mt_create_activity,
mail_mt_submit_activity,
mail_mt_free_activity,
- mail_mt_complete_acitivity,
+ mail_mt_complete_activity,
mail_mt_cancel_activity,
mail_mt_alert_error,
mail_mt_get_alert_sink);