X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=gtkrun.js;h=f7619bf9f6b36a34f7d091760c745322261c5929;hb=680d100a69f5788e7aedb6d4c2f6b47e14d073b4;hp=f93951bbc1fb63af36872c932bdc06ae3de13d69;hpb=5169b584aa551349df05f2139d2ee5370c7a35af;p=app.Builder.js diff --git a/gtkrun.js b/gtkrun.js index f93951bbc..f7619bf9f 100644 --- a/gtkrun.js +++ b/gtkrun.js @@ -10,8 +10,8 @@ * Might be the way to go for full runtime * * - * Usage - * GI_TYPELIB_PATH=home/alan/.Builder/gir-1.1 seed gtkrun.js /path/to/myproject + * Usage: (call with wrapper to set up directories..) + * sh builder.sh * * Concepts.. * a) load dependancies.. (eg. gi's..) - derived later? @@ -26,22 +26,29 @@ */ // autogen? -// sort out import path!!! +// sort out import path - this is a bit of a mess.. GIRepository = imports.gi.GIRepository; -//GIRepository.IRepository.prepend_search_path('/home/alan/.Builder/gir-1.1/girepository-1.0'); +GLib = imports.gi.GLib; -print(JSON.stringify(GIRepository.IRepository.get_search_path())); +// we add this in, as it appears to get lost sometimes if we set it using the ENV. variable in builder.sh +if (GIRepository.IRepository) { + GIRepository.IRepository.prepend_search_path( + GLib.get_home_dir() + '/.Builder/girepository-1.1'); +} +//print(JSON.stringify(GIRepository.IRepository.get_search_path())); Gtk = imports.gi.Gtk; Gdk = imports.gi.Gdk; Pango = imports.gi.Pango; -GLib = imports.gi.GLib; + Gio = imports.gi.Gio; GObject = imports.gi.GObject; GtkSource = imports.gi.GtkSource; WebKit = imports.gi.WebKit; Vte = imports.gi.Vte; +// we do not use these yet.. +//Gdl = imports.gi.Gdl; GtkClutter = imports.gi.GtkClutter; if (GtkClutter) { @@ -93,4 +100,4 @@ files.forEach(function(f) { Gtk.main(); - \ No newline at end of file +