From 366dacefa0a59c66320f65f19796eb30ad23f255 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 12 May 2011 15:32:33 -0400 Subject: 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... --- mail/e-mail-reader.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mail/e-mail-reader.h') 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, -- cgit