//<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;
Base = imports['JSDOC/Introspect/Base.js'].Base;
/**
* Union
*/
-
-Union = function(ns, name) {
- Base.call(this, ns, name);
-
-}
-
-Roo.extend(Union, Base, {
- titleType: 'Union',
- _loaded : false,
- load : function()
+
+Union = Object.define(
+ function(ns, name) {
+ Base.call(this, ns, name);
+
+ },
+ Base,
{
- if (this._loaded) {
- return; // already loaded..
- }
- // my props..
- var props = [];
- this.genericBuildList('union', 'field', props, 'properties');
-
- if (GI.union_info_get_size (this.getBI()) > 0 ) {
+ titleType: 'Union',
+ _loaded : false,
+ load : function()
+ {
+ if (this._loaded) {
+ return; // already loaded..
+ }
+ // my props..
+ var props = [];
+ this.genericBuildList('union', 'field', props, 'properties');
- this.constructors.push({
- name : '',
- params: [],
- returns : [],
- isConstructor : true,
- isStatic : false,
- memberOf : this.alias,
- exceptions : [],
- desc : ''
- });
+ if (GI.union_info_get_size (this.getBI()) > 0 ) {
+
+ this.constructors.push({
+ name : '',
+ params: [],
+ returns : [],
+ isConstructor : true,
+ isStatic : false,
+ memberOf : this.alias,
+ exceptions : [],
+ desc : ''
+ });
+ }
+ var methods = [];
+ this.genericBuildList('union', 'method', methods, 'methods');
+
+ this._loaded = true;
}
- var methods = [];
- this.genericBuildList('union', 'method', methods, 'methods');
-
- this._loaded = true;
- },
-
-
-});
\ No newline at end of file
+
+
+});
+
\ No newline at end of file