[vala] girparser: Shut warning about unused experimental metadata



commit 805c31bc389ba5ff7901c26b785cab1cfbfc930d
Author: Luca Bruno <lucabru src gnome org>
Date:   Mon Feb 3 23:19:37 2014 +0100

    girparser: Shut warning about unused experimental metadata

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 9267d7e..1d8023e 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1052,7 +1052,7 @@ public class Vala.GirParser : CodeVisitor {
 
                                // experimental
                                if (metadata.has_argument (ArgumentType.EXPERIMENTAL)) {
-                                       symbol.set_attribute ("Experimental", true);
+                                       symbol.set_attribute ("Experimental", metadata.get_bool 
(ArgumentType.EXPERIMENTAL));
                                }
 
                                if (parent.symbol is Namespace) {


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