From 4b532509256215e7beb39ace551e208dc264b9c5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 1 Dec 2010 16:14:13 +0800 Subject: [PATCH] tools/build_gtk_tree.js --- tools/build_gtk_tree.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/build_gtk_tree.js b/tools/build_gtk_tree.js index 894146093..f9e0a58c0 100644 --- a/tools/build_gtk_tree.js +++ b/tools/build_gtk_tree.js @@ -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]; +}); + -- 2.39.2