aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-activity.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-01 05:11:35 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:20 +0800
commit616f0b140bb937d7afeb46f834e32e8c51a67e1e (patch)
treee9a794d8f2722bb9034f01bf1192b0b16b2e3d57 /e-util/e-activity.h
parent4a929caada81820d7499b09875870b84e9900912 (diff)
downloadgsoc2013-evolution-616f0b140bb937d7afeb46f834e32e8c51a67e1e.tar.gz
gsoc2013-evolution-616f0b140bb937d7afeb46f834e32e8c51a67e1e.tar.zst
gsoc2013-evolution-616f0b140bb937d7afeb46f834e32e8c51a67e1e.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.h6
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);