X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=gtkrun.js;h=86c1036ddf39fd51797f14424da87edd824129cd;hb=29af9db99c3d8f006ab6291d89b182e4d871b9c9;hp=89e2c3055a7ee98880e2eed53fa60b1b72055618;hpb=b562f5e15dbbb059d638ac65b25552449f290f4c;p=app.Builder.js diff --git a/gtkrun.js b/gtkrun.js index 89e2c3055..86c1036dd 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,21 +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('~/.Builder/girepository-1.1'); +GLib = imports.gi.GLib; +// 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.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; +Gdl = imports.gi.Gdl; + GtkClutter = imports.gi.GtkClutter; if (GtkClutter) { @@ -92,4 +97,4 @@ files.forEach(function(f) { Gtk.main(); - \ No newline at end of file +