From: Alan Knowles Date: Fri, 10 Aug 2012 02:44:54 +0000 (+0800) Subject: tools/build_gtk_tree.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=1ed475e61ad41a7318adc091a446aaab57204816 tools/build_gtk_tree.js --- 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; } }