//<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;
* Property
*/
-Property = function(prop, memberOf, saveto, keylist) {
- this.propertyType = 'Property';
- var n_original = GI.base_info_get_name(prop);
- this.name = n_original.replace(/\-/g, '_') ,
- this.type = this.typeToName(GI.property_info_get_type(prop)),
- this.flags = GI.property_info_get_flags(prop),
- this.memberOf = memberOf.alias
- memberOf[saveto].push(this);
- keylist.push(this.name);
- this.desc = Introspect.doc(this.memberOf + '.' + n_original);
-
-
- if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) {
-
- Introspect.references[this.type] = Introspect.references[this.type] || [];
- Introspect.references[this.type].push(this);
- }
-
-}
-
-
-Roo.extend(Property,Basic);
+Property = Object.define(
+ function(prop, memberOf, saveto, keylist) {
+ this.propertyType = 'Property';
+ var n_original = GI.base_info_get_name(prop);
+ this.name = n_original.replace(/\-/g, '_') ,
+ this.type = this.typeToName(GI.property_info_get_type(prop)),
+ this.flags = GI.property_info_get_flags(prop),
+ this.memberOf = memberOf.alias
+ memberOf[saveto].push(this);
+ keylist.push(this.name);
+ this.desc = Introspect.doc(this.memberOf + '.' + n_original);
+
+
+ if (typeof(this.type) == 'string' && this.type.indexOf('.') > -1) {
+
+ Introspect.references[this.type] = Introspect.references[this.type] || [];
+ Introspect.references[this.type].push(this);
+ }
+
+ },
+ Basic
+);