X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=blobdiff_plain;f=tools%2Fbuild_gtk_tree.js;h=586c85c871e16a13278ccb9009898dfd8d125f77;hp=2c142b1b5400fe8d87b34dfa67a8652472f378a9;hb=1ed475e61ad41a7318adc091a446aaab57204816;hpb=12e4dc0dd4b1288681cbad95ad443a0aad127895 diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 2c142b1b5..586c85c87 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -273,10 +273,12 @@ 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()); } @@ -294,7 +296,7 @@ function BuildLists () { continue; } - if (verifyUsageMethod(parent,child,m[1])) { + if (verifyUsageMethod(parent,child,methods[i])) { return true; } }