X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FConstant.js;h=3d5f50ab94c7b9a5f38c5a5c1ceac6a8c787b25c;hp=4021197b2da1fcce20767d76e7673749716fe1d6;hb=58377493088e4462b69119eeeb92e647246cfeb2;hpb=ac79f1a182d221d5ba34e29e0a66d6cb11445aa9 diff --git a/Introspect/Constant.js b/Introspect/Constant.js index 4021197..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 + */ @@ -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 {