[geary/geary-0.11] Fix compilation under vala 0.35.1. Bug 775533.



commit d02629c38ce96949139c93513232e8205318172e
Author: Michael James Gratton <mike vee net>
Date:   Tue Dec 6 15:55:57 2016 +1100

    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 8debae3..3f278f3 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 75347f6..c032a50 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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]