1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3 GI = imports.gi.GIRepository;
7 imports['Object.js'].load(Object);
9 console = imports['console.js'].console;
13 Introspect = imports['JSDOC/Introspect.js'].Introspect;
14 Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
18 Signal = Object.define(
19 function(sig, memberOf, saveto, keylist) {
21 this.propertyType = 'Signal';
23 var params = this.argsToArrays(sig);
24 // add a reference to self...
27 type : memberOf.alias,
32 var n_original = GI.base_info_get_name(sig);
35 name : n_original.replace(/-/g,'_'),
37 memberOf : memberOf.alias,
39 returns : [ { type : this.typeToName(GI.callable_info_get_return_type(sig)) } ],
40 desc : Introspect.doc(memberOf.alias + '.signal.' + n_original)
42 memberOf[saveto].push(this);
43 keylist.push(this.name);
45 var addedto = [ memberOf.alias ]; // do not add to self...
47 for(var i =1; i < params.length;i++) {
48 var ty = params[i].type;
49 if (typeof(ty) != 'string' || ty.indexOf('.') < 0) {
52 if (addedto.indexOf(ty) > -1) {
58 Introspect.references[ty] = Introspect.references[ty] || [];
59 Introspect.references[ty].push(this);