projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools/build_gtk_tree.js
[app.Builder.js]
/
tools
/
build_gtk_tree.js
diff --git
a/tools/build_gtk_tree.js
b/tools/build_gtk_tree.js
index
6533304
..
e6b11ff
100644
(file)
--- a/
tools/build_gtk_tree.js
+++ b/
tools/build_gtk_tree.js
@@
-276,10
+276,11
@@
function BuildLists () {
if (method !='Gtk.Container:add') {
return true;
}
if (method !='Gtk.Container:add') {
return true;
}
-
- var cls = parent.split('.').pop();
+ var ar = parent.split('.')
+ var cls =ar[1];
+ var ns =ar[0];
-
+ /*
if (parent == 'Gtk.Bin' || methods['Gtk.Bin'].extendsClasses.indexOf(parent) > -1) {
return false;
}
if (parent == 'Gtk.Bin' || methods['Gtk.Bin'].extendsClasses.indexOf(parent) > -1) {
return false;
}
@@
-291,13
+292,25
@@
function BuildLists () {
].indexOf(parent) > -1) {
return false;
}
].indexOf(parent) > -1) {
return false;
}
+ */
+
+
+ try {
+ var x = new imports.gi[ns][cls]();
+ } catch(e) {
+ print("TRY ctor: " + parent );
+ print(e.toString());
+ return false;
+ }
- //print("TRY ctor: " + parent );
-
- var x = new imports.gi.Gtk[cls]();
//print("TRY child type: " + parent);
//print("TRY child type: " + parent);
- //print(parent + " : says children are of type : " + x.child_type());
+ print(parent + " : says children are of type : " + x.child_type());
+ // get the Gtype for the child?
+
+ print ("matching?" + GObject.type_From_name(ar.join('')));
+
+
return true;
}
return true;
}
@@
-454,7
+467,7
@@
right:
/*
methods is
[a class]
/*
methods is
[a class]
- [has methods that use this object]
+ [has
methods that use this object]
[list of methods of the top class..]
[list of methods of the top class..]
@@
-485,6
+498,8
@@
right:
}
imports.gi.Gtk.init(Seed.argv);
}
imports.gi.Gtk.init(Seed.argv);
+
+imports.gi.GtkClutter.init(Seed.argv);
BuildLists();
// we now have a list of classes / methods that can be used..
BuildLists();
// we now have a list of classes / methods that can be used..