aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-13 03:32:33 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:14 +0800
commit3395074cc1ce463dc83e6ef4710b4a56e2a9fcc9 (patch)
treef5aae4b5f1afd0ca2ab07f5125a8efe3c6e39680 /mail/e-mail-reader.h
parent464bffb6211e7e9710ce7a5b9f605d237654b636 (diff)
downloadgsoc2013-evolution-3395074cc1ce463dc83e6ef4710b4a56e2a9fcc9.tar.gz
gsoc2013-evolution-3395074cc1ce463dc83e6ef4710b4a56e2a9fcc9.tar.zst
gsoc2013-evolution-3395074cc1ce463dc83e6ef4710b4a56e2a9fcc9.zip
Add e_mail_reader_new_activity().
Configuring and submitting an EActivity for every mail operation is getting tedious. This function helps reduce boilerplate code by: * Creating a new EActivity instance. * Installing an EAlertSink using e_mail_reader_get_alert_sink(). * Installing a GCancellable (which is really a CamelOperation). * Submitting the activity via e_shell_backend_add_activity(). I'm considering adding a similar function (or class method) for EShellView. Not sure yet...
Diffstat (limited to 'mail/e-mail-reader.h')
-rw-r--r--mail/e-mail-reader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mail/e-mail-reader.h b/mail/e-mail-reader.h
index 9c5da8fcd8..0e874603c4 100644
--- a/mail/e-mail-reader.h
+++ b/mail/e-mail-reader.h
@@ -115,6 +115,7 @@ void e_mail_reader_init (EMailReader *reader,
gboolean connect_signals);
void e_mail_reader_changed (EMailReader *reader);
guint32 e_mail_reader_check_state (EMailReader *reader);
+EActivity * e_mail_reader_new_activity (EMailReader *reader);
void e_mail_reader_update_actions (EMailReader *reader,
guint32 state);
GtkAction * e_mail_reader_get_action (EMailReader *reader,