//<script type="text/javascript">
//Gtk = imports.gi.Gtk;
GI = imports.gi.GIRepository;
-GLib = imports.gi.GLib;
-xml = imports.libxml;
-//GObject = imports.gi.GObject;
+
+
+
+imports['Object.js'].load(Object);
console = imports['console.js'].console;
-JSDOC = imports['JSDOC.js'].JSDOC;
-Roo = imports['Roo.js'].Roo;
+
+
Introspect = imports['JSDOC/Introspect.js'].Introspect;
Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
-Signal = function(sig, memberOf, saveto, keylist) {
+Signal = Object.define(
+ function(sig, memberOf, saveto, keylist) {
- this.propertyType = 'Signal';
-
- var params = this.argsToArrays(sig);
- // add a reference to self...
- params.unshift({
- name : 'self',
- type : memberOf.alias,
- direction : 'in',
- be_null : false
+ this.propertyType = 'Signal';
+
+ var params = this.argsToArrays(sig);
+ // add a reference to self...
+ params.unshift({
+ name : 'self',
+ type : memberOf.alias,
+ direction : 'in',
+ be_null : false
+
+ });
+ var n_original = GI.base_info_get_name(sig);
+
+ Object.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)
+ });
+ memberOf[saveto].push(this);
+ keylist.push(this.name);
+
+ var addedto = [ memberOf.alias ]; // do not add to self...
+
+ for(var i =1; i < params.length;i++) {
+ var ty = params[i].type;
+ if (typeof(ty) != 'string' || ty.indexOf('.') < 0) {
+ continue;
+ }
+ if (addedto.indexOf(ty) > -1) {
+ continue;
+ }
- });
- var n_original = GI.base_info_get_name(sig);
-
- Roo.apply(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)
- });
- memberOf[saveto].push(this);
- keylist.push(this.name);
-
- var addedto = [ memberOf.alias ]; // do not add to self...
-
- for(var i =1; i < params.length;i++) {
- var ty = params[i].type;
- if (typeof(ty) != 'string' || ty.indexOf('.') < 0) {
- continue;
- }
- if (addedto.indexOf(ty) > -1) {
- continue;
+
+
+ Introspect.references[ty] = Introspect.references[ty] || [];
+ Introspect.references[ty].push(this);
+ addedto.push(ty);
}
- Introspect.references[ty] = Introspect.references[ty] || [];
- Introspect.references[ty].push(this);
- addedto.push(ty);
- }
-
-
-
-
-
-}
-Roo.extend(Signal,Basic);
+
+
+ },
+ Basic
+);