Fix foreach syntax for compatibility w older vala
authorKevin Wasserman <krwasserman@hotmail.com>
Tue, 8 Oct 2013 17:20:15 +0000 (13:20 -0400)
committerSam Hartman <hartmans@painless-security.com>
Tue, 8 Oct 2013 17:30:16 +0000 (13:30 -0400)
src/moonshot-keyring-store.vala

index 78c7af2..b546de6 100644 (file)
@@ -52,7 +52,7 @@ public class KeyringStore : Object, IIdentityCardStore {
        match.append_string(keyring_store_attribute, keyring_store_version);
        GLib.List<GnomeKeyring.Found> items;
         GnomeKeyring.find_items_sync(item_type, match, out items);
-        items.foreach((entry) => {
+        foreach(unowned GnomeKeyring.Found entry in items) {
             IdCard id_card = new IdCard ();
             int i;
             int rules_patterns_index = -1;
@@ -110,7 +110,7 @@ public class KeyringStore : Object, IIdentityCardStore {
             else
                 id_card.password = null;
             id_card_list.add(id_card);
-        });
+        }
     }
 
     public void store_id_cards () {