JSDOC/TokenReader.js
[gnome.introspection-doc-generator] / Introspect / Constant.js
index bfd3b30..3d5f50a 100644 (file)
@@ -15,7 +15,7 @@ Basic        = imports.Basic.Basic;
  
 
 /**
- * Constant
+ * Constant - might error out, this should be fixed upstream now
  *
  *    <union name="Argument" c:type="GIArgument">
 
@@ -24,6 +24,9 @@ Basic        = imports.Basic.Basic;
               introspectable="1">
           <type name="Argument" c:type="GIArgument*"/>
 
+
+g-ir-compiler /usr/share/gir-1.0/GIRepository-2.0.gir -o  /usr/lib/girepository-1.0/GIRepository-2.0.typelib 
+
  */
 
 
@@ -43,10 +46,10 @@ Constant = XObject.define(
         
         if (ty != 'interface') {
             
-            var argm = new GI._Argument();
-            GI.constant_info_get_value ?
-                GI.constant_info_get_value ( prop ,argm) :
-                prop.get_value(argm);
+            var argm = new GI.Argument();
+            
+            GI.constant_info_get_value ( prop ,argm) 
+                
                 
             if (ty != 'utf8') {
                 this.value = argm.v_long;