From: Alan Knowles Date: Wed, 8 Aug 2012 10:28:58 +0000 (+0800) Subject: Introspect/Basic.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=3abdbd2369f01b06619794d9af7d4f4eb57a4843 Introspect/Basic.js --- diff --git a/Introspect/Basic.js b/Introspect/Basic.js index 00cc18e..e9955f8 100644 --- a/Introspect/Basic.js +++ b/Introspect/Basic.js @@ -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 ;