Introspect/Constant.js
[gnome.introspection-doc-generator] / Introspect / Constant.js
index 054a8c2..c47496e 100644 (file)
@@ -22,6 +22,7 @@ Basic        = imports.Basic.Basic;
  * NEEDS <function name="constant_info_get_value"
               c:identifier="g_constant_info_get_value"
               introspectable="1">
+          <type name="Argument" c:type="GIArgument*"/>
 
  */
 
@@ -42,10 +43,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;