projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools/build_gtk_tree.js
[app.Builder.js]
/
tools
/
build_gtk_tree.js
diff --git
a/tools/build_gtk_tree.js
b/tools/build_gtk_tree.js
index
15d07d7
..
2275f78
100644
(file)
--- a/
tools/build_gtk_tree.js
+++ b/
tools/build_gtk_tree.js
@@
-304,14
+304,16
@@
function BuildLists () {
}
//print("TRY child type: " + parent);
}
//print("TRY child type: " + parent);
-
-
print(parent + " : says children are of type : " + x.child_type()
);
+ var ct = x.child_type();
+
//print(parent + " : says children are of type : " + ct
);
// get the Gtype for the child?
// get the Gtype for the child?
-
- print ("matching?" + imports.gi.GObject.type_From_name(ar.join('')));
+ var GObject = imports.gi.GObject;
+ var match = GObject.type_from_name(ar.join(''));
+ //print([match, ct]);
+ //print ("matching?" + (GObject.type_is_a(match, ct ) ? "YES" : "NO"));
- return
tru
e;
+ return
GObject.type_is_a(match, ct ) ? true : fals
e;
}
}
@@
-391,6
+393,8
@@
right:
tops[cls].pushUnique(par);
}
}
tops[cls].pushUnique(par);
}
}
+
+
function canTop(cls, rec) {
rec = rec || 0;
function canTop(cls, rec) {
rec = rec || 0;
@@
-413,11
+417,21
@@
right:
}
}
return false;
}
}
return false;
-
}
}
-
-
-
+ var lefts = {};
+ for(var par in usage) {
+ var left = usage[par].join(',');
+ if (typeof(lefts[left]) == 'undefined') {
+ lefts[left] = [];
+ }
+ lefts[left].push(par);
+ }
+ print (JSON.stringify(lefts,null,4));
+ Seed.exit();
+
+
+
+
print (JSON.stringify(usage,null,4));
var nusage = {};
var usage_left = {};
print (JSON.stringify(usage,null,4));
var nusage = {};
var usage_left = {};