X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tools%2Fbuild_gtk_tree.js;h=bc550cbea8f46ca152a5b2078a05029ee7d943f5;hb=058e948ea7076cbe927bbd87db0799700d2c0436;hp=1f093040db8bc6f5dbec428baaad71d35dd538f5;hpb=6fde618fdac8027d660701ecf95eb6d1640f38f2;p=app.Builder.js diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 1f093040d..bc550cbea 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -279,7 +279,7 @@ function BuildLists () { var cls = parent.split('.').pop(); - + /* if (parent == 'Gtk.Bin' || methods['Gtk.Bin'].extendsClasses.indexOf(parent) > -1) { return false; } @@ -291,13 +291,17 @@ function BuildLists () { ].indexOf(parent) > -1) { return false; } + */ //print("TRY ctor: " + parent ); var x = new imports.gi.Gtk[cls](); //print("TRY child type: " + parent); - //print(parent + " : says children are of type : " + x.child_type()); + print(parent + " : says children are of type : " + x.child_type()); + // get the Gtype for the child? + + return true; } @@ -360,9 +364,11 @@ right: continue; } for (var par in methods[cls].can_be_added_to_as) { - if (!verifyUsage(par,cls)) { + + if (!verifyUsage(par,cls)) { continue; } + if (typeof(usage[par]) == 'undefined') { usage[par] = []; }