GtkSource = imports.gi.GtkSource;
WebKit = imports.gi.WebKit;
Vte = imports.gi.Vte;
-
-Gdl = imports.gi.Gdl;
+
+//Gdl = imports.gi.Gdl;
//GtkClutter = imports.gi.GtkClutter;
-//if (GtkClutter) {
- // GtkClutter.init(Seed.argv);
-//}
+
+if (typeof(GtkClutter) != 'undefined') {
+ GtkClutter.init(Seed.argv);
+}
+
File = imports.File.File;
//XObject.debug = true;
Gtk.init(Seed.argv);
+Globals = imports.Globals;
+
imports.searchPath.push('/'); // allow global paths..
// error checking todo..
var gtkbuilder = false;
files.forEach(function(f) {
var fp = Seed.argv[2] + '/' + f;
- if (!fp.match(/\.bjs$/)) {
+
+
+
+ if (!fp.match(/\.js$/)) {
return;
}
- var js = fp.replace(/\.bjs$/, '.js');
+ var js = fp; //.replace(/\.js$/, '.js');
if (File.isFile(js)) {
// check file time.. = bjs is less than compiled file..
- if (File.mtime(fp) < File.mtime(js)) {
+ //if (File.mtime(fp) < File.mtime(js)) {
XObject.log("LOADING" + js);
olist.push(imports[js]);
return;
- }
-
+ //}
+ // Compiling BJS is depreciated..
+ //olist.push(imports[js]);
+ //return;
}
+
+ return;
+ /*
var gtkbuilder = new imports.Builder.Provider.File.Gtk.Gtk({ path : fp });
gtkbuilder.loadItems(function() { });
XObject.log("COMPILING" + js);
return;
}
olist.push(imports[fn]);
-
+ */
});