diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-12 00:19:17 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:12 +0800 |
commit | fb38ed0bf5891b343afd30a5621d0008cd1e687d (patch) | |
tree | ebfaff0463064887c815d1bb4e6c82243cbacad8 /mail/mail-mt.c | |
parent | 312d1b74ca0d2eedd92ead4945deaf9e746fd33b (diff) | |
download | gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.tar gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.tar.gz gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.tar.bz2 gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.tar.lz gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.tar.xz gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.tar.zst gsoc2013-evolution-fb38ed0bf5891b343afd30a5621d0008cd1e687d.zip |
Add e_activity_handle_cancellation().
Convenience function for use in GAsyncReadyCallback functions.
This acknowledges the cancellation, so that the activity's description
changes from "(cancelling)" to "(cancelled)" and the description appears
crossed out in the UI for a moment before disappearing.
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index a65f6e3c9e..53ff132545 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -208,10 +208,8 @@ mail_msg_check_error (gpointer msg) checkmem (m->priv); #endif - if (g_error_matches (m->error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { - e_activity_set_state (m->activity, E_ACTIVITY_CANCELLED); + if (e_activity_handle_cancellation (m->activity, m->error)) return; - } e_activity_set_state (m->activity, E_ACTIVITY_COMPLETED); |