Introspect/Constant.js
[gnome.introspection-doc-generator] / Introspect / Constant.js
index 4021197..af4df63 100644 (file)
@@ -35,8 +35,10 @@ Constant = XObject.define(
         
         if (ty != 'interface') {
             
-            var argm = new GI.Argument();
-            GI.constant_info_get_value ( prop ,argm);
+            var argm = new GI._Argument();
+            GI.constant_info_get_value ?
+                GI.constant_info_get_value ( prop ,argm) :
+                prop.get_value(argm);
             if (ty != 'utf8') {
                 this.value = argm.v_long;
             } else {