1 //<script type="text/javascript">
2 //Gtk = imports.gi.Gtk;
3 GI = imports.gi.GIRepository;
4 GLib = imports.gi.GLib;
8 XObject = imports.XObject.XObject;
9 console = imports.console.console;
10 NameSpace = imports.NameSpace.NameSpace;
12 Base = imports.Base.Base;
18 imports['Object.js'].load(Object);
20 console = imports['console.js'].console;
25 Introspect = imports['JSDOC/Introspect.js'].Introspect;
26 Basic = imports['JSDOC/Introspect/Basic.js'].Basic;
34 Constant = XObject.define(
35 function(prop, memberOf, saveto, keylist) {
37 this.name = GI.base_info_get_name(prop);
38 var tif = GI.constant_info_get_type(prop);
39 var ty = GI.type_tag_to_string( GI.type_info_get_tag(tif));
40 this.type = this.typeToName(GI.constant_info_get_type(prop));
42 ///this.flags = GI.property_info_get_flags(prop),
45 this.value= 'UNKNOWN';
48 if (ty != 'interface') {
50 var argm = new GI.Argument();
51 GI.constant_info_get_value ( prop ,argm);
53 this.value = argm.v_long;
55 this.value = argm.v_string;
59 this.desc = Introspect.doc(memberOf.alias + '.' + this.name)
61 memberOf[saveto].push(this);
62 keylist.push(this.name);