X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tools%2Fbuild_gtk_tree.js;h=4d0c934da31fbe7d24556e0eeed7be97fce04ec4;hb=373eece7083d2f13fb5bbf509cf1d6676900e531;hp=15d07d7978f4dde6933ed11ffc23b8b22a399fca;hpb=9133491264e37a4d37a06515f8e224defcf1305b;p=app.Builder.js diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 15d07d797..4d0c934da 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -304,11 +304,13 @@ function BuildLists () { } //print("TRY child type: " + parent); - - print(parent + " : says children are of type : " + x.child_type()); + var ct = x.child_type(); + print(parent + " : says children are of type : " + ct); // get the Gtype for the child? - - print ("matching?" + imports.gi.GObject.type_From_name(ar.join(''))); + var GObject = imports.gi.GObject; + var match = GObject.type_from_name(ar.join('')); + print([ar, ct]); + print ("matching?" + (GObject.type_is_a(ar, ct ) ? "YES" : "NO")); return true;