X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FConstant.js;h=3d5f50ab94c7b9a5f38c5a5c1ceac6a8c787b25c;hp=4d416684d97671b34aa8370d0419bc69b0918ad3;hb=HEAD;hpb=82fe5c5a6892c00d6588096d7932e192b46212ca diff --git a/Introspect/Constant.js b/Introspect/Constant.js index 4d41668..3d5f50a 100644 --- a/Introspect/Constant.js +++ b/Introspect/Constant.js @@ -15,7 +15,18 @@ 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 + */ @@ -23,7 +34,7 @@ Constant = XObject.define( function(prop, memberOf, saveto, keylist) { this.name = prop.get_name(); - var tif = prop.get_type(); //GI.constant_info_get_type(prop); + 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 +46,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 ( prop ,argm) + + if (ty != 'utf8') { this.value = argm.v_long; } else {