X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=gtkrun.js;h=88481f9a86e2e0c3577f3072795f8d3d64a6f37b;hb=15935093f93caccf9e843a7a02bddd2027d1fa0f;hp=68060cc35d1e1e4abc14cde3b814e03af11f2024;hpb=4472873a9b07dcb50d4ece49934cf0d819c914cb;p=app.Builder.js diff --git a/gtkrun.js b/gtkrun.js index 68060cc35..88481f9a8 100644 --- a/gtkrun.js +++ b/gtkrun.js @@ -10,8 +10,8 @@ * Might be the way to go for full runtime * * - * Usage - * 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,26 @@ */ // 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 +GIRepository.IRepository.prepend_search_path(GLib.get_home_dir() + '/.Builder/girepository-1.2'); +//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; +Gdl = imports.gi.Gdl; + GtkClutter = imports.gi.GtkClutter; if (GtkClutter) { @@ -93,4 +97,4 @@ files.forEach(function(f) { Gtk.main(); - \ No newline at end of file +