[geary/mjog/misc-fixes: 24/27] Add Geary.RFC822.MailboxAddresses::is_empty



commit 19fc5eced3c6b85f4b8819c6978b4670ee03e6dd
Author: Michael Gratton <mike vee net>
Date:   Sat Jan 25 16:46:56 2020 +1100

    Add Geary.RFC822.MailboxAddresses::is_empty

 src/engine/rfc822/rfc822-mailbox-addresses.vala | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/engine/rfc822/rfc822-mailbox-addresses.vala b/src/engine/rfc822/rfc822-mailbox-addresses.vala
index 5d647fa7..4afd096d 100644
--- a/src/engine/rfc822/rfc822-mailbox-addresses.vala
+++ b/src/engine/rfc822/rfc822-mailbox-addresses.vala
@@ -57,6 +57,11 @@ public class Geary.RFC822.MailboxAddresses :
         get { return this.addrs.size; }
     }
 
+    /** Determines if there are no addresses in the list. */
+    public bool is_empty {
+        get { return this.addrs.is_empty; }
+    }
+
     private Gee.List<MailboxAddress> addrs = new Gee.ArrayList<MailboxAddress>();
 
     private bool hash_cached = false;


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