X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FConstant.js;h=3d5f50ab94c7b9a5f38c5a5c1ceac6a8c787b25c;hp=bad3f6dc43c81ede2878f1bc3fb459746b7dd1c4;hb=58377493088e4462b69119eeeb92e647246cfeb2;hpb=7da9b103ee026e6b16a1aae9fb819a3f52ce3df4 diff --git a/Introspect/Constant.js b/Introspect/Constant.js index bad3f6d..3d5f50a 100644 --- a/Introspect/Constant.js +++ b/Introspect/Constant.js @@ -15,14 +15,25 @@ Basic = imports.Basic.Basic; /** - * Constant + * Constant - might error out, this should be fixed upstream now + * + * + + * NEEDS + + + +g-ir-compiler /usr/share/gir-1.0/GIRepository-2.0.gir -o /usr/lib/girepository-1.0/GIRepository-2.0.typelib + */ 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)); @@ -36,7 +47,10 @@ Constant = XObject.define( if (ty != 'interface') { var argm = new GI.Argument(); - GI.constant_info_get_value ( prop ,argm); + + GI.constant_info_get_value ( prop ,argm) + + if (ty != 'utf8') { this.value = argm.v_long; } else {