X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Introspect%2FConstant.js;h=3d5f50ab94c7b9a5f38c5a5c1ceac6a8c787b25c;hb=99c3b79f2b213e7df40920437a07ec391fd17c78;hp=157d650bb14f4354f37d4f06efc725742a7df1d1;hpb=c5c0df810ad80d1d0d804191102015b70b3cc073;p=gnome.introspection-doc-generator diff --git a/Introspect/Constant.js b/Introspect/Constant.js index 157d650..3d5f50a 100644 --- a/Introspect/Constant.js +++ b/Introspect/Constant.js @@ -15,11 +15,17 @@ 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 */ @@ -40,10 +46,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;