diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 05:11:35 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-11-01 10:54:30 +0800 |
commit | ccc2b3a14bf19b3db1d837887a07e74f50db078c (patch) | |
tree | 639b3deaf2fa7e15ebb149a705095fbb0d717a7b /e-util/e-activity.h | |
parent | 82925c6be94e9e48e4ef521a88a9feec24cf9eef (diff) | |
download | gsoc2013-evolution-ccc2b3a14bf19b3db1d837887a07e74f50db078c.tar.gz gsoc2013-evolution-ccc2b3a14bf19b3db1d837887a07e74f50db078c.tar.zst gsoc2013-evolution-ccc2b3a14bf19b3db1d837887a07e74f50db078c.zip |
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.
Diffstat (limited to 'e-util/e-activity.h')
-rw-r--r-- | e-util/e-activity.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <gtk/gtk.h> +#include <e-util/e-alert-sink.h> #include <e-util/e-util-enums.h> /* 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); |