X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Introspect%2FConstant.js;h=bfd3b3043c89356aa029e6c67fb93ca1ef79c31a;hb=2ae39cc7f4d116f5cf721f9d3c0aedb913bb8a2b;hp=bad3f6dc43c81ede2878f1bc3fb459746b7dd1c4;hpb=8e8da0ce53d5005cba0966d410c966eac20b0977;p=gnome.introspection-doc-generator diff --git a/Introspect/Constant.js b/Introspect/Constant.js index bad3f6d..bfd3b30 100644 --- a/Introspect/Constant.js +++ b/Introspect/Constant.js @@ -16,13 +16,21 @@ Basic = imports.Basic.Basic; /** * Constant + * + * + + * NEEDS + + */ Constant = XObject.define( function(prop, memberOf, saveto, keylist) { - this.name = GI.base_info_get_name(prop); + this.name = prop.get_name(); var tif = GI.constant_info_get_type(prop); var ty = GI.type_tag_to_string( GI.type_info_get_tag(tif)); this.type = this.typeToName(GI.constant_info_get_type(prop)); @@ -35,8 +43,11 @@ 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 {