X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=jhbuild.js;h=b088626b0e23f6aac3bb197e1a39995ca86937de;hb=ea5a086bc07ad5bae1d61131680c0e8249dfcc6f;hp=aac7cd8d5194c95e89dbd24293046ab132ad6e70;hpb=61a128a56345a9fe663b3ede9514977a5f39d4e6;p=gnome.introspection-doc-generator diff --git a/jhbuild.js b/jhbuild.js index aac7cd8..b088626 100755 --- a/jhbuild.js +++ b/jhbuild.js @@ -11,9 +11,9 @@ Gio = imports.gi.Gio; File = imports.File.File; console = imports.console.console; +Seed.include('Date.js'); - - = imports.DateExtra.DateExtra; +//DateExtra = imports.DateExtra.DateExtra; @@ -25,7 +25,7 @@ var UPDATE_SOURCES = false; -var LOGFILE = "jhbuild-" + (new DateExtra()).format("Y-m-d-H") + '.log'; +var LOGFILE = "jhbuild-" + (new Date()).format("Y-m-d-H") + '.log'; // change src & deleteGirs when you add / remove girs.. @@ -233,7 +233,7 @@ function spawnlog (cwd, s, outfile, errfile) { GLib.SpawnFlags.DO_NOT_REAP_CHILD + GLib.SpawnFlags.SEARCH_PATH , null, null, ret); - var ctx = GLib.main_loop_new (null, false); + var ctx = new GLib.MailLoop.c_new (null, false); var started = false; GLib.child_watch_add(GLib.PRIORITY_DEFAULT, ret.child_pid, function(pid, status) { @@ -242,7 +242,7 @@ function spawnlog (cwd, s, outfile, errfile) { retval.done = true; if (started) { console.log("Ending LOOP"); - GLib.main_loop_quit(ctx); + ctx.quit(); } }); @@ -317,7 +317,7 @@ function spawnlog (cwd, s, outfile, errfile) { if (!retval.done) { started = true; console.log("STARTING LOOP"); - GLib.main_loop_run(ctx, false); // wait fore exit? + ctx.run(); // wait fore exit? } readstr(out_ch, outfile, 'output'); readstr(err_ch, errfile, 'error');