X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JSDOC%2FIntrospect.js;h=7777c94af3f146462560529c21abfae4eedb1338;hb=bf1653b60d77386954fa54c8c285031ee27f3a27;hp=4bbda6c992e9fe6683a146254b67d866407f25fd;hpb=40e0ac03b7fb11779c3c389fcf3fa9c135c4b066;p=gnome.introspection-doc-generator diff --git a/JSDOC/Introspect.js b/JSDOC/Introspect.js index 4bbda6c..7777c94 100644 --- a/JSDOC/Introspect.js +++ b/JSDOC/Introspect.js @@ -42,10 +42,10 @@ Object.extend(Introspect, { while (true) { - var fn = GLib.dir_read_name(gdir); + var fn = gdir.read_name(); // console.log('trying ' + fn); if (!fn) { - GLib.dir_close(gdir); + gdir.close(); return;; } if (!fn.match(/.typelib$/)) { @@ -236,6 +236,10 @@ Object.extend(Introspect, { var n = getAttribute(element, 'name') ; //console.log("WALK" + n); + if (element.name == 'signal') { + path += '.signal'; + } + if (n) { path += path.length ? '.' : ''; path += n; @@ -243,9 +247,6 @@ Object.extend(Introspect, { if (element.name == 'return-value') { path += '.return-value'; } - if (element.name == 'signal') { - path += '.signal'; - } var d = getAttribute(element,'doc'); if (d) {