patch-src_engine_imap-db_imap-db-folder_vala 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $OpenBSD: patch-src_engine_imap-db_imap-db-folder_vala,v 1.1 2017/04/13 07:10:21 jasper Exp $
  2. From 5a0b85e58639f5a9b9e2a1aa6b1882da6b2e6648 Mon Sep 17 00:00:00 2001
  3. From: Michael James Gratton <mike@vee.net>
  4. Date: Tue, 4 Oct 2016 00:06:54 +1100
  5. Subject: Fix compilation with valac git master.
  6. --- src/engine/imap-db/imap-db-folder.vala.orig Sun Dec 25 02:14:36 2016
  7. +++ src/engine/imap-db/imap-db-folder.vala Thu Apr 13 08:45:54 2017
  8. @@ -869,10 +869,10 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.
  9. if (unread_status.size > 0)
  10. unread_updated(unread_status);
  11. }
  12. -
  13. - public async Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags>? get_email_flags_async(
  14. - Gee.Collection<ImapDB.EmailIdentifier> ids, Cancellable? cancellable) throws Error {
  15. - Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags>? map = null;
  16. +
  17. + internal async Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags>? get_email_flags_async(
  18. + Gee.Collection<EmailIdentifier> ids, Cancellable? cancellable) throws Error {
  19. + Gee.Map<EmailIdentifier, Geary.EmailFlags>? map = null;
  20. yield db.exec_transaction_async(Db.TransactionType.RO, (cx, cancellable) => {
  21. map = do_get_email_flags(cx, ids, cancellable);
  22. @@ -1084,11 +1084,11 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.
  23. if (ids.size == 0)
  24. return null;
  25. - Gee.HashMap<Geary.EmailIdentifier, Geary.Email.Field> map = new Gee.HashMap<
  26. - Geary.EmailIdentifier, Geary.Email.Field>();
  27. + Gee.HashMap<ImapDB.EmailIdentifier,Geary.Email.Field> map = new Gee.HashMap<
  28. + ImapDB.EmailIdentifier,Geary.Email.Field>();
  29. // Break up the work
  30. - Gee.List<ImapDB.EmailIdentifier> list = new Gee.ArrayList<Geary.EmailIdentifier>();
  31. + Gee.List<ImapDB.EmailIdentifier> list = new Gee.ArrayList<ImapDB.EmailIdentifier>();
  32. Gee.Iterator<ImapDB.EmailIdentifier> iter = ids.iterator();
  33. while (iter.next()) {
  34. list.add(iter.get());
  35. @@ -1575,7 +1575,7 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.
  36. Db.Statement fetch_stmt = cx.prepare("SELECT flags FROM MessageTable WHERE id=?");
  37. Gee.Map<ImapDB.EmailIdentifier, Geary.EmailFlags> map = new Gee.HashMap<
  38. - Geary.EmailIdentifier, Geary.EmailFlags>();
  39. + ImapDB.EmailIdentifier, Geary.EmailFlags>();
  40. // TODO: Unroll this loop
  41. foreach (LocationIdentifier location in locs) {
  42. fetch_stmt.reset(Db.ResetScope.CLEAR_BINDINGS);