[folks] Bug 636251 — Fails to add contact



commit c7505774b7a70d0c1e979a10439ceb87419d74f2
Author: Stef Walter <stefw collabora co uk>
Date:   Wed Dec 1 20:50:22 2010 +0000

    Bug 636251 â?? Fails to add contact
    
    Vala compiles this line of code wrong, and tries to double check
    that there is a GValue boxed inside of the GValue.
    
    Closes: bgo#636251

 folks/individual-aggregator.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index 1326f14..a571368 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -788,7 +788,11 @@ public class Folks.IndividualAggregator : Object
 
       asv.foreach ((k, v) =>
         {
+#if VALA_0_12
+          retval.insert ((string) k, v);
+#else
           retval.insert ((string) k, (Value?) v);
+#endif
         });
 
       return retval;



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