From 5b1742b202ca9505ccd818918b4afe82fc61b63b Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 14 Jun 2013 22:55:03 -0400 Subject: Add e_mail_reader_ref_folder(). Replaces e_mail_reader_get_folder(). --- plugins/mail-to-task/mail-to-task.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/mail-to-task/mail-to-task.c') diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 0293701a0e..12ff5b0c95 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -1105,7 +1105,6 @@ mail_to_event (ECalClientSourceType source_type, EShell *shell; EMailBackend *backend; ESourceRegistry *registry; - CamelFolder *folder; GPtrArray *uids; ESource *source = NULL; ESource *default_source; @@ -1114,7 +1113,6 @@ mail_to_event (ECalClientSourceType source_type, const gchar *extension_name; GError *error = NULL; - folder = e_mail_reader_get_folder (reader); parent = e_mail_reader_get_window (reader); uids = e_mail_reader_get_selected_uids (reader); @@ -1213,7 +1211,7 @@ mail_to_event (ECalClientSourceType source_type, data = g_new0 (AsyncData, 1); data->source = g_object_ref (source); data->source_type = source_type; - data->folder = g_object_ref (folder); + data->folder = e_mail_reader_ref_folder (reader); data->uids = uids; data->with_attendees = with_attendees; -- cgit