X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FMethod.js;h=0b1ad4860e103a5fedfff89bac0c20b8d7995168;hp=2c44879ba16d62bbae60fed669c9241b4ed40e76;hb=HEAD;hpb=8e8da0ce53d5005cba0966d410c966eac20b0977 diff --git a/Introspect/Method.js b/Introspect/Method.js index 2c44879..0b1ad48 100644 --- a/Introspect/Method.js +++ b/Introspect/Method.js @@ -22,7 +22,7 @@ Method = XObject.define( this.propertyType = 'Method'; var flags = GI.function_info_get_flags (m); - var n = GI.base_info_get_name(m); + var n = m.get_name(); var n_original = n + ''; // posibly add: sink, if (n.match(/_(ref|unref)$/) || n.match(/^(ref|unref|weakref|weakunref)$/)) { @@ -66,8 +66,8 @@ Method = XObject.define( name : n, params: args, returns : retval, - isConstructor : flags & GI.IFunctionInfoFlags.IS_CONSTRUCTOR, - isStatic : !(flags & GI.IFunctionInfoFlags.IS_METHOD), + isConstructor : flags & GI.FunctionInfoFlags.IS_CONSTRUCTOR, + isStatic : !(flags & GI.FunctionInfoFlags.IS_METHOD), memberOf : memberOf.alias, exceptions : [], desc : NameSpace.doc(memberOf.alias + '.' + n_original)