From ccc2b3a14bf19b3db1d837887a07e74f50db078c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 31 Oct 2010 17:11:35 -0400 Subject: EActivity: Add an "alert-sink" property. This is just for convenience, EActivity does not use this property. Especially useful in async function callbacks when the operation failed and now you have to do something useful with the GError. --- e-util/e-activity.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'e-util/e-activity.h') diff --git a/e-util/e-activity.h b/e-util/e-activity.h index 63195b770a..4602a5696e 100644 --- a/e-util/e-activity.h +++ b/e-util/e-activity.h @@ -23,6 +23,7 @@ #define E_ACTIVITY_H #include +#include #include /* Standard GObject macros */ @@ -64,9 +65,10 @@ struct _EActivityClass { GType e_activity_get_type (void); EActivity * e_activity_new (void); -EActivity * e_activity_newv (const gchar *format, - ...) G_GNUC_PRINTF (1, 2); gchar * e_activity_describe (EActivity *activity); +EAlertSink * e_activity_get_alert_sink (EActivity *activity); +void e_activity_set_alert_sink (EActivity *activity, + EAlertSink *alert_sink); GCancellable * e_activity_get_cancellable (EActivity *activity); void e_activity_set_cancellable (EActivity *activity, GCancellable *cancellable); -- cgit