X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=blobdiff_plain;f=Introspect%2FSignal.js;fp=JSDOC%2FIntrospect%2FSignal.js;h=9524512cb5e7f048a3afff2bc1151cb53d202de5;hp=66b0994f9dad0ac36354ada0b3735973ddd3ba7b;hb=134619d3049edce9b27810483e8011e5dfb783e0;hpb=649a91296eb2d7e5cbd4d1407deb9c1fa714229f diff --git a/JSDOC/Introspect/Signal.js b/Introspect/Signal.js similarity index 75% rename from JSDOC/Introspect/Signal.js rename to Introspect/Signal.js index 66b0994..9524512 100644 --- a/JSDOC/Introspect/Signal.js +++ b/Introspect/Signal.js @@ -2,20 +2,16 @@ //Gtk = imports.gi.Gtk; GI = imports.gi.GIRepository; +XObject = imports.XObject.XObject; +console = imports.console.console; +NameSpace = imports.NameSpace.NameSpace; +Basic = imports.Basic.Basic; -imports['Object.js'].load(Object); + + -console = imports['console.js'].console; - - - -Introspect = imports['JSDOC/Introspect.js'].Introspect; -Basic = imports['JSDOC/Introspect/Basic.js'].Basic; - - - -Signal = Object.define( +Signal = XObject.define( function(sig, memberOf, saveto, keylist) { this.propertyType = 'Signal'; @@ -31,13 +27,13 @@ Signal = Object.define( }); var n_original = GI.base_info_get_name(sig); - Object.extend(this,{ + XObject.extend(this,{ name : n_original.replace(/-/g,'_'), params : params, memberOf : memberOf.alias, exceptions : [], returns : [ { type : this.typeToName(GI.callable_info_get_return_type(sig)) } ], - desc : Introspect.doc(memberOf.alias + '.' + n_original) + desc : NameSpace.doc(memberOf.alias + '.signal.' + n_original) }); memberOf[saveto].push(this); keylist.push(this.name); @@ -55,8 +51,8 @@ Signal = Object.define( - Introspect.references[ty] = Introspect.references[ty] || []; - Introspect.references[ty].push(this); + NameSpace.references[ty] = NameSpace.references[ty] || []; + NameSpace.references[ty].push(this); addedto.push(ty); }