From: Alan Knowles Date: Fri, 10 Aug 2012 03:50:58 +0000 (+0800) Subject: tools/build_gtk_tree.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=3d270530ec2eb0182239ce6d7c5a13d5dba1e79f tools/build_gtk_tree.js --- diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index e6d70ba38..c245843ec 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -276,7 +276,13 @@ function BuildLists () { if (method !='Gtk.Container:add') { return true; } + var cls = parent.split('.').pop(); + + if (parent = 'Gtk.Bin' || methods['Gtk.Bin'].extendsClasses.indexOf(parent) > -1) { + return false; + } + print("TRY ctor: " + parent ); var x = new imports.gi.Gtk[cls]();