From 1ed475e61ad41a7318adc091a446aaab57204816 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 10 Aug 2012 10:44:54 +0800 Subject: [PATCH] tools/build_gtk_tree.js --- tools/build_gtk_tree.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } } -- 2.39.2