aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-activity.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-12 00:19:17 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:12 +0800
commitfb38ed0bf5891b343afd30a5621d0008cd1e687d (patch)
treeebfaff0463064887c815d1bb4e6c82243cbacad8 /e-util/e-activity.h
parent312d1b74ca0d2eedd92ead4945deaf9e746fd33b (diff)
downloadgsoc2013-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 'e-util/e-activity.h')
-rw-r--r--e-util/e-activity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-activity.h b/e-util/e-activity.h
index 4602a5696e..3e56f992f8 100644
--- a/e-util/e-activity.h
+++ b/e-util/e-activity.h
@@ -84,6 +84,8 @@ void e_activity_set_state (EActivity *activity,
const gchar * e_activity_get_text (EActivity *activity);
void e_activity_set_text (EActivity *activity,
const gchar *text);
+gboolean e_activity_handle_cancellation (EActivity *activity,
+ const GError *error);
G_END_DECLS