tools/build_gtk_tree.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 1 Dec 2010 08:14:13 +0000 (16:14 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 1 Dec 2010 08:14:13 +0000 (16:14 +0800)
tools/build_gtk_tree.js

index 8941460..f9e0a58 100644 (file)
@@ -18,3 +18,14 @@ File        = imports.File.File;
 // Introspecion specific..
 NameSpace   = imports.Introspect.NameSpace.NameSpace; 
 Link        = imports.Introspect.Link.Link; 
+
+var ns_list = NameSpace.namespaces();
+ns_list = ns_list.sort();
+// let's try and load them, so we find out early what will fail.
+print("loading library to make sure it works.");
+ns_list.forEach(function(ns_name) 
+{   
+    var  core = imports.gi[ns_name];
+});
+