X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tools%2Fbuild_gtk_tree.js;h=d053dfa92ead6de53bf5a22f8ccf35b94a973c6e;hb=9d7c8ec6478148f28168397dfacad5373e2c5fe4;hp=2c142b1b5400fe8d87b34dfa67a8652472f378a9;hpb=12e4dc0dd4b1288681cbad95ad443a0aad127895;p=app.Builder.js diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 2c142b1b5..d053dfa92 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -273,10 +273,13 @@ function BuildLists () { function verifyUsageMethod(parent,child,method) { // currently only verifies add on container. - if (method !='add') { - + if (method !='Gtk.Container:add') { + return true; } - + var cls = parent.split('.').pop(); + var x = new Gtk[cls](); + print(parent + " : says children are of type : " + x.child_type()); + return true; } @@ -287,14 +290,14 @@ function BuildLists () { function verifyUsage(parent,child) { // find all the methods that child can be added to parent. - var methods = methods[parent].can_contain_using; - for(var i =0;i