From 9da8c372e267a28116d4a4c2db4a9e7f0f05ca75 Mon Sep 17 00:00:00 2001 From: Michael James Gratton Date: Tue, 6 Dec 2016 15:55:57 +1100 Subject: [PATCH] Fix compilation under vala 0.35.1. Bug 775533. Patch thanks to gautier@damsy.net in Bug 775452. --- src/engine/db/db-transaction-async-job.vala | 2 +- src/engine/imap-db/imap-db-attachment.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/db/db-transaction-async-job.vala b/src/engine/db/db-transaction-async-job.vala index 8debae30..3f278f3e 100644 --- a/src/engine/db/db-transaction-async-job.vala +++ b/src/engine/db/db-transaction-async-job.vala @@ -12,7 +12,7 @@ private class Geary.Db.TransactionAsyncJob : BaseObject { private TransactionOutcome outcome = TransactionOutcome.ROLLBACK; private Error? caught_err = null; - protected TransactionAsyncJob(TransactionType type, TransactionMethod cb, Cancellable? cancellable) { + public TransactionAsyncJob(TransactionType type, TransactionMethod cb, Cancellable? cancellable) { this.type = type; this.cb = cb; this.cancellable = cancellable ?? new Cancellable(); diff --git a/src/engine/imap-db/imap-db-attachment.vala b/src/engine/imap-db/imap-db-attachment.vala index 75347f65..c032a509 100644 --- a/src/engine/imap-db/imap-db-attachment.vala +++ b/src/engine/imap-db/imap-db-attachment.vala @@ -9,7 +9,7 @@ private class Geary.ImapDB.Attachment : Geary.Attachment { private const string ATTACHMENTS_DIR = "attachments"; - protected Attachment(File data_dir, string? filename, Mime.ContentType content_type, int64 filesize, + public Attachment(File data_dir, string? filename, Mime.ContentType content_type, int64 filesize, int64 message_id, int64 attachment_id, Mime.ContentDisposition content_disposition, string? content_id, string? content_description) { base (generate_id(attachment_id),generate_file(data_dir, message_id, attachment_id, filename),