X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FBasic.js;h=e9955f88ca241b008a0469feda29756c6fe961b4;hp=83076917b52adb99ec090396541c6961efd344e4;hb=58377493088e4462b69119eeeb92e647246cfeb2;hpb=f252c87b3e8e3fa9eff92a625358f59849a81832 diff --git a/Introspect/Basic.js b/Introspect/Basic.js index 8307691..e9955f8 100644 --- a/Introspect/Basic.js +++ b/Introspect/Basic.js @@ -32,7 +32,7 @@ Basic = XObject.define( // array of what!?!? var param_type = GI.type_info_get_param_type (type_info, 0); var atype = GI.type_info_get_tag(param_type); - if (atype == GI.ITypeTag.UINT8) { + if (atype == GI.TypeTag.UINT8) { return 'utf8'; } @@ -43,7 +43,9 @@ Basic = XObject.define( return ty; } var interface_info = GI.type_info_get_interface (type_info); - var interface_type = GI.base_info_get_type (interface_info); + var interface_type = GI.base_info_get_type ? + GI.base_info_get_type (interface_info) : interface_info.get_type() ; + if (interface_type == GI.InfoType.CALLBACK) { // callback.. var Callback = imports.Callback.Callback ;