1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3 GI = imports.gi.GIRepository;
5 imports['Object.js'].load(Object);
7 console = imports['console.js'].console;
11 Introspect = imports['JSDOC/Introspect.js'].Introspect;
12 Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
19 Property = Object.define(
20 function(prop, memberOf, saveto, keylist) {
21 this.propertyType = 'Property';
22 var n_original = GI.base_info_get_name(prop);
23 this.name = n_original.replace(/\-/g, '_') ,
24 this.type = this.typeToName(GI.property_info_get_type(prop)),
25 this.flags = GI.property_info_get_flags(prop),
26 this.memberOf = memberOf.alias
27 memberOf[saveto].push(this);
28 keylist.push(this.name);
29 this.desc = Introspect.doc(this.memberOf + '.' + n_original);
32 if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) {
34 Introspect.references[this.type] = Introspect.references[this.type] || [];
35 Introspect.references[this.type].push(this);